I would like to order posts within the category
and by default the wordpress order should be descending based on published date, but I want to order descending based on a custom field I use (event_end_date)
Here is the code of the page and the order should be around the highlighted part:
I tried to use this code somewhere but I really don’t know how:
query_posts($query_string . '&meta_key=event_end_date&orderby=meta_value&order=ASC');
Anybody know how to do that?
- The topic ‘Post order in category’ is closed to new replies.