Title: Search.php Hackery
Last modified: August 18, 2016

---

# Search.php Hackery

 *  [Root](https://wordpress.org/support/users/root/)
 * (@root)
 * [18 years, 8 months ago](https://wordpress.org/support/topic/searchphp-hackery/)
 * I am customising a search.php. Problem is that it only returns the same number
   of results that are set for posts in the reading options.
    I want to return a
   list of all posts in the cat but at the moment it is inside the loop so I am 
   flummoxed.

Viewing 1 replies (of 1 total)

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [18 years, 8 months ago](https://wordpress.org/support/topic/searchphp-hackery/#post-638454)
 * Just thinking aloud…
    Could it be possible to add a query_posts set to show 999
   before the Loop?

Viewing 1 replies (of 1 total)

The topic ‘Search.php Hackery’ is closed to new replies.

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [moshu](https://wordpress.org/support/users/moshu/)
 * Last activity: [18 years, 8 months ago](https://wordpress.org/support/topic/searchphp-hackery/#post-638454)
 * Status: not a support question

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
