'slideshow', 'posts_per_page' => -1, 'order' => 'ASC', 'orderby' => 'menu_order', ); global $post; $cats = get_post_meta(get_the_id(), 'slider_categories', true); if(!empty($cats)) { $query['tax_query'] = array( array( 'taxonomy' => 'slideshow_category', 'field' => 'slug', 'terms' => unserialize($cats), 'operator' => 'IN', ) ); $query['taxonomy'] = 'slideshow_category'; } query_posts($query); while(have_posts()): the_post(); $image = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full'); $image = $image[0]; $background = get_post_meta(get_the_id(), 'background', true); $href = get_post_meta(get_the_id(), 'slide-link', true); $link_target = get_post_meta(get_the_id(), 'slide-link-target', true); if(!empty($href)) { $href = "data-href='$href' data-target='$link_target'"; } else { $href = ''; } $style = ''; if(!empty($background)) { $style .= "background:$background; "; } $style = "data-style='$style'"; if(get_post_meta(get_the_id(), 'slide-content-is', true) == 'caption'): $content = get_the_content(); $caption_id = ''; if(!empty($content)) { $caption_id = '#caption-'.get_the_id(); $captions[] = array( 'id' => 'caption-'.get_the_id(), 'content' => apply_filters('the_content', $content), 'helper1' => apply_filters('the_content', get_post_meta(get_the_id(), 'caption-helper-1', true)), 'helper2' => apply_filters('the_content', get_post_meta(get_the_id(), 'caption-helper-2', true)), ); } ?> <?php echo $caption_id?>/>
data-thumb="">
-1, 'meta_query' => array( array( 'key' => 'featured', 'value' => 'true', ) ), ); // query not ready global $post; query_posts($query); while(have_posts()): the_post(); ?> 'caption-'.get_the_id(), 'content' => '', 'helper1' => '
'.get_the_excerpt().'
', 'helper2' => ''.get_the_title().'', ); ?>
<?php echo $caption_id?> 'portfolio', 'orderby'=>'menu_order', 'order'=>'ASC', 'posts_per_page' => -1, 'meta_query' => array( array( 'key' => 'featured', 'value' => 'true', ) ), ); query_posts($query); $size = array(0.7*940-8, wpv_get_option('header-slider-height')); $moretext = __('Read more', 'wpv'); while(have_posts()): the_post(); ?> 'caption-'.get_the_id(), 'content' => '', 'helper1' => '
'.get_the_excerpt().'
', 'helper2' => ''.get_the_title().'', ); $image = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full'); $image = $image[0]; ?> <?php echo $caption_id?>
$caption['helper2'], 'helper1' => $caption['content'], 'helper2' => $caption['helper1'] ); } ?>