Categorize Pod CPT by Custom Categories and Categories
-
I’m sure this has been asked a bunch of times, but nothing I’ve researched has made much sense.
I’m creating a specialized product listing for libraries sorted by a Custom Category Taxonomy and then a regular WP category within a seasonal trend archive page.
I have a CPT pod called product that is associated with a custom category called season (Winter, Spring, Summer and Fall).
This same CPT pod is also associated with another custom taxonomy category called library_type (Municipal Libraries, School Libraries, College Libraries, etc…).
These CPT products are then associated with the built in WordPress categories (fiction, non-fiction, children’s, etc…)
I already have the archive template built that lists the CPT products based on whatever season the user clicks on. (Winter, Spring, Summer, Fall). This part is done and works great!
What I’m having trouble with is how to sort the products by the other two categories. As an example:
SUMMER ARCHIVE
Municipal Libraries
Fiction
Book One
Book Two
Book ThreeSchool Libraries
Non-Fiction
Book Four
Book FiveI am building this template with php. Any help would be appreciated. Thank You.
- The topic ‘Categorize Pod CPT by Custom Categories and Categories’ is closed to new replies.