Title: query_posts with multiple parameters
Last modified: August 19, 2016

---

# query_posts with multiple parameters

 *  Resolved [timsainb](https://wordpress.org/support/users/timsainb/)
 * (@timsainb)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/query_posts-with-multiple-parameters/)
 * For some reason, query_posts will not accept multiple parameters for me. See 
   [here](http://photography.bramblingdesign.com/). Below is the code used to display
   the ‘From the Blog’ section. If it makes any difference I’m using the Carrington
   Framework.
 *     ```
       <?php
   
                                       //The Query
                                       query_posts('showposts=1&category_name=blog');
   
                                       //The Loop
                                       if (have_posts()) {
                                               while (have_posts()) {
                                                       the_post();
                                                       cfct_content();
                                               }
                                       }
   
                                       //Reset Query
                                       wp_reset_query();
   
                                   ?>
       ```
   

Viewing 1 replies (of 1 total)

 *  Thread Starter [timsainb](https://wordpress.org/support/users/timsainb/)
 * (@timsainb)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/query_posts-with-multiple-parameters/#post-1403947)
 * Never mind, turns out I had this same problem a few months ago, and figured out
   the solution.
    [http://wordpress.org/support/topic/306723?replies=9](http://wordpress.org/support/topic/306723?replies=9)

Viewing 1 replies (of 1 total)

The topic ‘query_posts with multiple parameters’ is closed to new replies.

## Tags

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

 * 1 reply
 * 1 participant
 * Last reply from: [timsainb](https://wordpress.org/support/users/timsainb/)
 * Last activity: [16 years, 2 months ago](https://wordpress.org/support/topic/query_posts-with-multiple-parameters/#post-1403947)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
