Title: PHP Query in Classipress Theme &#8211; SIMPLE PROBLEM!
Last modified: August 19, 2016

---

# PHP Query in Classipress Theme – SIMPLE PROBLEM!

 *  [robototitico](https://wordpress.org/support/users/robototitico/)
 * (@robototitico)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/php-query-in-classipress-theme-simple-problem/)
 * I am uing the following query to show only one post per page in the “blog” category
   of my classipress themed wordperss site –
 *     ```
       <?php global $query_string; ?>
                       <?php query_posts( $query_string . '&posts_per_page=1' ); ?>
       ```
   
 * This causes the following problem however – [http://www.farmads.ie/new/category/farm-videos/page/49/](http://www.farmads.ie/new/category/farm-videos/page/49/)
   
   It shows Page 49 of 7. It is calculating the number of pages based on what I 
   have the classipress settings set to.
 * Below is the piece of code that sets the pagination function. How can I include
   some of it in my query in order to overcome this problem?
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome).
   Please use the [pastebin](http://wordpress.pastebin.com/)]_

The topic ‘PHP Query in Classipress Theme – SIMPLE PROBLEM!’ is closed to new replies.

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 0 replies
 * 1 participant
 * Last reply from: [robototitico](https://wordpress.org/support/users/robototitico/)
 * Last activity: [15 years, 2 months ago](https://wordpress.org/support/topic/php-query-in-classipress-theme-simple-problem/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
