Title: query_posts change in 2.3?
Last modified: August 18, 2016

---

# query_posts change in 2.3?

 *  [linquity](https://wordpress.org/support/users/linquity/)
 * (@linquity)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/query_posts-change-in-23/)
 * I have upgraded to 2.3. Until this, I used the following syntax for query_posts,
   that worked out of the box, ordering posts from one category, within the current
   month.
    Is there any change in WP 2.3 code related to query_posts, or there is
   another way to achieve above mentioned query string?
 * URL : [http://fge.org.ro](http://fge.org.ro)
 * **Code used**
 *     ```
       <?php $current_month = date('m'); ?>
       <?php $current_year = date('Y'); ?>
   
       <?php query_posts("cat=1&year=$current_year&monthnum=$current_month&order=DESC"); ?>
   
           <?php if (have_posts()) : ?>
       		<?php while (have_posts()) : the_post(); ?>
       ```
   
 * etc.
 * Thanks,
    Alex

The topic ‘query_posts change in 2.3?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [linquity](https://wordpress.org/support/users/linquity/)
 * Last activity: [18 years, 7 months ago](https://wordpress.org/support/topic/query_posts-change-in-23/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
