Opened 17 years ago
Closed 17 years ago
#8855 closed defect (bug) (invalid)
order=ASC shows all posts
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | major | Version: | 2.7 |
| Component: | General | Keywords: | reporter-feedback |
| Focuses: | Cc: |
Description
Doing query_posts('order=ASC') returns all posts, ignoring the other query vars (author, tag etc.)
Change History (3)
Note: See
TracTickets for help on using
tickets.
If you're simply using "query_posts('order=ASC');" then yes, That returns all posts, query_posts() doesnt take into account current query vars, it completely rests it.
You could use something like:
query_posts( array_merge($GLOBALS['wp_query']->query_vars, array('order' => 'ASC')) );to achieve what you're after i think
Has this changed from an earlier version of WP?