Title: Load more posts
Last modified: August 22, 2016

---

# Load more posts

 *  [Phillip](https://wordpress.org/support/users/phillustration/)
 * (@phillustration)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/load-more-posts-1/)
 * Hi there,
 * I have bitten off more than i can chew regarding a website request from a client.
 * They are wanting to have a ‘Load More’ button at the bottom of a row of 3 posts.
 * When the ‘View More’ button is clicked it loads another row of 3 posts.
 * I have the code currently pulling in the posts. Beyond that, I am stumped. Can
   someone point me in the right direction?
 *     ```
       <div id="posts-bottom">
       <ul>
       <?php $cat_name = 'Secondary';?>
       <?php query_posts('category_name='.$cat_name); ?>
       <?php while (have_posts()) : the_post(); ?>                
   
       <li>
       <div id="posts-bottomitem" align="center">
       <a href="<?php the_permalink(); ?>"><?php echo get_the_post_thumbnail( $post_id, $size, $attr ); ?></a>
       <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
       <p><?php $content = get_the_content();
       $content = strip_tags($content);
       echo substr($content, 0, 150); ?></p>
       </div>
       </li>
   
       <?php endwhile;?>
       </ul>
       </div>
   
       <div id="break"><div id="viewmore">View More</div></div>
       ```
   
 * Thank you for any help,
 * P

The topic ‘Load more posts’ is closed to new replies.

## Tags

 * [posts](https://wordpress.org/support/topic-tag/posts/)
 * [query_posts](https://wordpress.org/support/topic-tag/query_posts/)

 * 0 replies
 * 1 participant
 * Last reply from: [Phillip](https://wordpress.org/support/users/phillustration/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/load-more-posts-1/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
