render link post inside same page
-
<?php $args = array( 'cat' => 2, 'order' => 'ASC', 'showposts' => 1 ); query_posts($args); ?> <?php while (have_posts()) : the_post(); ?> <?php the_title(); ?> <?php the_content(); ?> <?php next_posts_link( '<strong>%link</strong>' ); ?> <?php endwhile; ?>following code is inside page-leaf.php
i want to show 1 post in one time but as soon i click on link it jump to the single.php for render. but i want to render next post inside same page . how can i achieve that.
The topic ‘render link post inside same page’ is closed to new replies.