I am working on a new theme right now, where I need some category ordering done.
On one of the templates, I would need the following code to work:
$custom_query = new WP_Query( array ( 'cat' => $catid , 'orderby' => 'term_group' ))
It *has* to work with term_group somehow, and yes I’ve tried quite a few category order plugins, which don’t really work for what I need to do – my categories are ordered, but I just need to display the post they contain in the order of the categories.
Thanks in advance, I’m really stuck on this one…
- The topic ‘wp_query order by term group’ is closed to new replies.