0

I was wondering if I could sort posts at all by taxonomy terms? I've read that I can't, but I'm not too sure about that?

If so, how do I go about doing so?

Sorry for the rather short question. I have made several topics over the last week regarding this question and all were very detailed and elaborate but I've yet to get a single response.

I am going to link them here in hopes I can draw attention to them (cause I can't set up a bounty yet).

Please let me know what I'm doing wrong, in asking my questions. Did I ask something that made completely no sense? I really do need the help. I am self taught and I can't figure this out. I also did not want to make exact replicates of the posts I've very carefully typed up already, but I may have to do so until I get some sort of answer.

Ordering Posts List By Taxonomy Terms?

Creating a sortable table of posts by taxonomies?

Custom Post Type and Taxonomies Structures

Thanks StackExchange and sorry.

  • You have no reason to be sorry. I admire your effort. I'll run through them. – tao Nov 30 '15 at 18:31
  • You may be too far into your system but maybe upon saving your posts you also save your taxonomy ( such as Directors ) as post_meta. It's much much much easier to sort on post_meta than taxonomies. WP_Query has an orderby => 'meta_value' which would work nicely. I believe if you want to order posts alphabetically by Director ( terms ) then you would need to write custom SQL. See this similar question and answer. – Howdy_McGee Nov 30 '15 at 18:32
  • I would recommend to ask on meta if you want some help about improving your questions. This one doesn't quite make sense on main site. – Rarst Nov 30 '15 at 18:32
  • if you want answers you need to make it easier for people to answer your questions. Narrow down the amount of information required in order to answer the question. I really don't need to know your website inside out to tell you how to order by a custom_meta. Could you please post the query arguments you are using now? – tao Nov 30 '15 at 18:38