Title: render link post inside same page
Last modified: August 22, 2016

---

# render link post inside same page

 *  [danieldangol](https://wordpress.org/support/users/danieldangol/)
 * (@danieldangol)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/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.

## Tags

 * [render](https://wordpress.org/support/topic-tag/render/)
 * [single.php](https://wordpress.org/support/topic-tag/single-php/)

 * 0 replies
 * 1 participant
 * Last reply from: [danieldangol](https://wordpress.org/support/users/danieldangol/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/render-link-post-inside-same-page/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
