Linked Questions

2
votes
2answers
2k views

Group Custom post type in a page by its taxomony tag

I hope i can write a clear question since i got confused trying to solve this... I got a custom post type... that custom post type has taxomony (category like) and i want to return a structure like ...
0
votes
2answers
116 views

making php value numeric

I used some of this code from this page on Stack Overflow: Using wp_query is it possible to orderby taxonomy? It's about the function to be able to sort a query by a taxonomy value. Although it works ...
4
votes
1answer
2k views

Sort Custom Post Type Archive by Taxonomy Term

What is the best method (as of 3.1 or 3.2 beta) to sort a custom post type archive by a given taxonomy term? I'm trying to make a staff page and I want to sort employees by department. So the ...
2
votes
1answer
228 views

Create a Metabox that behaves Like a Taxonomy Box

I need to show all my custom articles on an archive page but grouped/sorted by subject. So that the result is somewhat like Subject A: A Sample Post Another Sample Post Subject B: List item ...
0
votes
1answer
868 views

woocommerce - products by category slug? [closed]

good morning, I need to display the shop base page in a category layout,meaning first show all the products from category A and beneath it all the products from category B and so on.. I trying to use ...
0
votes
1answer
66 views

Sort Posts Alphabetically by Multiple Categories [duplicate]

Basically I have an array of posts which I want to sort by title. $categories = get_categories('child_of=4'); $arr_records = array(); $post_data = array(); foreach($categories as $category) { ...
0
votes
1answer
316 views

Transfer taxonomy to custom field

I have a blog with movie critics and I'm using many taxonomies to add some informations about the movies, like director, actors or it's year. Using taxonomies is really useful to display all movies ...
0
votes
1answer
177 views

Order custom posts by taxonomy?

I have the following custom post types: books, documents, examples, guidebooks, onlineaids. They were generated by the following code: ...
0
votes
1answer
84 views

Page view: Sorted by categories

I think this might be a really simple problem, but I just don't know exactly what and where to enter the specific code and before I mess up, I thought it's better to ask for help here. I was able to ...
1
vote
0answers
47 views

Sorting main query by custom taxonomy slug

Is there a way to sort posts by custom taxonomy (shoe_color) ASC|DESC? I would like to do this using query_posts and passing the orderby=shoe_color into it. Here is the code I'm trying to work out: ...
0
votes
0answers
16 views

Is it possible to order a query on one taxonomy term by the terms in another, connected taxonomy?

I've seen the negative answer in this question, Using wp_query is it possible to orderby taxonomy?, but I think I have a valid use case for something similar that's less broad than in that previous ...
0
votes
0answers
54 views

Ordering posts by custom taxonomy in admin area

EDIT @kaiser - this question is slightly different to the answer you posted in that I am talking about sorting by clicking the column title rather than adding a dropdown to filter by taxonomy term ...
0
votes
0answers
31 views

Get all the contents of taxonomy and sort by term

I'm doing this in a page template. So far, I can query all the contents under my taxonomy. But I need to sort them in terms of their term. Any idea on how to do this? Providing an example would be ...
0
votes
0answers
21 views

How to order posts by taxonomy in WP_Query [duplicate]

Possible Duplicate: Using wp_query is it possible to orderby taxonomy? I have a page template that should show CPTs grouped by taxonomy. I'd like to get all the CPTs in a single query and ...

15 30 50 per page