Wow, that title got me all dizzy. It’s okay though, it’s not that complicated, right?
I just wanted to get this posted before I forgot what I did and where I did it. Since I use custom post types and custom taxonomies quite a bit, I need to reference this code quite a bit.
On the current site I’m working on, here’s what I have:
- Custom post type: Portfolio ( ‘portfolio’ )
- Custom taxonomy: Portfolio Categories ( ‘portfolio_cat’ )
- Portfolio category term archive: Media Analyst ( ‘media-analyst’ )
I put the following code in my taxonomy-portfolio_cat-media-analyst.php file.
WP_Query is extremely powerful, and the above code makes it easy for Genesis (affiliate link) to harness that power!