Всем привет.
У меня вот такой вопрос:
На моем сайте есть слайдер на главной, который отображает последние записи. Каким макаром из него можно исключить несколько категорий?
вот код:
Цитата:
<div id="featured">
<div class="slideshow">
<div class="slides" id="main-photo-slider">
<?php
query_posts( array(
'showposts' => get_option('forester_featured_post_num'),
'tag' => get_option('forester_featured_post_tags')
) );
if( have_posts() ) : while( have_posts() ) : the_post();
?>
<div class="panel" title="post-<?php the_ID(); ?>">
<a href="<?php the_permalink() ?>" rel="********" title="<?php printf( __( 'Permanent Link to %s', 'woothemes' ), get_the_title() ); ?>" class="panel-preview">
<?php the_post_thumbnail('featured-thumb'); ?>
<div class="arrow"></div>
</a>
<h2 class="entry-title"><a href="<?php the_permalink() ?>" rel="********" title="<?php printf( __( 'Permanent Link to %s', 'woothemes' ), get_the_title() ); ?>"><?php the_title(); ?></a></h2>
<p class="entry-meta">
<span class="meta-date"><?php the_time('m.d.Y'); ?> <?php the_time('g:i a'); ?></span>
<span class="meta-sep">|</span>
<span class="meta-comments"><?php comments_popup_link( __( '0 comment', 'themejunkie' ), __( '1 comment', 'themejunkie' ), __( '% comments', 'themejunkie' ) ); ?></span>
</p>
<?php tj_content_limit('110'); ?>
</div><!--end .panel-->
<?php endwhile; endif; wp_reset_query(); ?>
</div><!--end .slides-->
<div class="slider-tabs">
<?php for( $i = 0; $i < get_option('forester_featured_post_num'); $i++ ) { ?>
<a href="#" class="slider-tab-<?php echo $i; ?>"><?php echo $i; ?></a>
<?php } ?>
</div>
</div><!--end .slideshow -->
<div class="clear"></div>
</div><!--end #featured-->
|
Вот адрес сайта: heapofnews.ru