Tagged Questions
2
votes
1answer
282 views
Order posts by (hierarchical custom) taxonomy terms and term children
The scenario
a custom post type wiki
a (hierarchical) custom taxonomy topics
a page template archive-wiki.php
The situation
Posts show up and get ordered by post_date (which is the default).
The ...
0
votes
2answers
278 views
Check post_date in pre_get_posts
I want to change the order of a feed using pre_get_posts filter. But I want to exclude dates older than today. I see how one could do that if the date were in a meta key, but the date is in ...
0
votes
1answer
792 views
How to alter query order direction using $query->set('order', 'ASC'); inside a pre_get_posts filter?
According to:
http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters
Default order is DESC and default orderby is date.
In a custom plugin, plugin is applying the following ...