How to dispaly the slider only on the front page
-
I create a page template which will display the selected categories posts,
I want to display a slider on the front page, nnce a user goes to the previous page (/page/2) the slider will no longer appear.I have read the post
http://wordpress.org/support/topic/have-element-display-only-on-first-page-of-posts?replies=10
But it don’t work on me.
my code:
<div class="entry-content clearfix"> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <the slider here> <?php endwhile; endif; ?> </div> <div id="content"> <?php query_posts("showposts=8&paged="); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
[Please post code snippets between backticks or use the code button.]
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘How to dispaly the slider only on the front page’ is closed to new replies.