WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a site with Taxonomy for State (Eg Victoria, Qeensland ETC) this taxonomy is called listing_state.

I also have a taxonomy called membership_type which can be Free or Paid. These 2 taxconomies are for a CPT of listings

If I click on a taxonomy for State it brings the results as expected sorted by post date, how would I list the Paid Memberships before the Free memberships.

I am using Genesis and Lifestyle theme

Thanks Richard

share|improve this question
I have changed membership_type to a custom field (meta) instead of a custom taxonomy. How would I now arrange for the archive page to be sorted by meta. Thanks Richard – user12548 Mar 18 '12 at 3:38

Other then two queries one for paid and on for free or creating a custom SQL query, its not possible natively.

That’s not what taxonomies are for. Taxonomies are for grouping, not for ordering by. If you want to order by something, it has to be something in the post itself, not a term in a taxo. Otto

So It would make more sense to set the Paid / Free as post meta and the sort by it.

share|improve this answer

I've been thinking about this recently as well. As quoted from Otto, taxonomies are meant to group posts, so I think the best way to do something similar to what you want is to create a custom walker that groups posts of the same term and displays them as such.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.