Ciao a tutti, editando la pagina "breadcrumb.php" ho lo slider visualizzato in ogni Pages
io vorrei fare in modo però che venga visualizzata la "featured image" della pagina
come posso fare in modo che in questo slider l'unica immagine visualizzata sia la featured della page?
codice:<?php $et_slider_type = apply_filters( 'et_slider_type', get_option('chameleon_slider_type') ); ?> <div id="featured<?php if ( $et_slider_type == 'roundabout' ) echo '-modest'; ?>"> <?php if ( $et_slider_type <> 'roundabout' ) { ?> <div id="slides"> <?php } ?> <?php global $ids; $ids = array(); $i=1; $featured_cat = get_option('chameleon_feat_cat'); $featured_num = get_option('chameleon_featured_num'); if (get_option('chameleon_use_pages') == 'false') query_posts("showposts=$featured_num&cat=".get_cat_ID($featured_cat)); else { global $pages_number; if (get_option('chameleon_feat_pages') <> '') $featured_num = count(get_option('chameleon_feat_pages')); else $featured_num = $pages_number; query_posts(array ('post_type' => 'page', 'orderby' => 'menu_order', 'order' => 'ASC', 'post__in' => get_option('chameleon_feat_pages'), 'showposts' => $featured_num )); } ?> <?php if (have_posts()) : while (have_posts()) : the_post(); global $post; ?> <?php if ( $et_slider_type == 'cycle' ) { ?> <div class="slide"> <?php $width = 960; $height = 332; $titletext = get_the_title(); $thumbnail = get_thumbnail($width,$height,'',$titletext,$titletext,false,'Featured'); $thumb = $thumbnail["thumb"]; print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, ''); ?> <div class="featured-top-shadow"></div> <div class="featured-bottom-shadow"></div> </div> <?php } ?> <?php $ids[] = $post->ID; $i++; endwhile; endif; wp_reset_query(); ?> <?php if ( $et_slider_type <> 'roundabout' ) { ?> </div> <?php } ?> </div>

Rispondi quotando