Title: the loop show limit posts
Last modified: August 19, 2016

---

# the loop show limit posts

 *  [sdcr](https://wordpress.org/support/users/solidcolour/)
 * (@solidcolour)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/the-loop-show-limit-posts/)
 * this is the basic loop <?php while (have_posts()) : the_post(); ?>
 * i want to show 20 posts on the search results page, i know we can change the 
   value on admin panel options. but it will change all i.e. index page and archive
   page etc. I need to have them differently.
 * thanks!

Viewing 1 replies (of 1 total)

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/the-loop-show-limit-posts/#post-1708946)
 * edit search.php;
 * query_posts
    [http://codex.wordpress.org/Function_Reference/query_posts](http://codex.wordpress.org/Function_Reference/query_posts)
   [http://codex.wordpress.org/Function_Reference/query_posts#Post_.26_Page_Parameters](http://codex.wordpress.org/Function_Reference/query_posts#Post_.26_Page_Parameters)‘
   posts_per_page’

Viewing 1 replies (of 1 total)

The topic ‘the loop show limit posts’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Michael](https://wordpress.org/support/users/alchymyth/)
 * Last activity: [15 years, 7 months ago](https://wordpress.org/support/topic/the-loop-show-limit-posts/#post-1708946)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
