Listing posts under primary and secondary taxonomies

This only takes care of two levels. You could make a recursive function, if you have ‘unlimited’ levels. $custom_terms = get_terms(‘custom_taxonomy’); /** * Loop through all taxonomies */ foreach($custom_terms as $custom_term): // Reset query (for good measures sake) wp_reset_query(); // Set the args (getting ready to get posts that are in the given taxonomy) $outer_args … Read more

Display a grid of taxonomy terms at root taxonomy page

After researching some more I’ve given up trying to use the taxonomy template and opted for a plugin to amend the permalinks. I followed some of the advice from this similar question: Taxonomy archive with same slug as custom post type? Currently I am using an amended archive template for the custom post types and … Read more

How to display Custom Taxonomy under Custom Admin Menu?

You haven’t properly registered the taxonomy for your post type. You register your post type like this: register_post_type( ‘custom-post-type-1′, Meaning that your post type is named custom-post-type-1. But when you register the taxonomy, you’re registering it for a post type called my-menu“ register_taxonomy( ‘custom-taxonomy’, ‘my-menu’, You need to register your taxonomy for your post type: … Read more

Show posts from a custom taxonomy on a page

Most of your code looks OK. But there is a major problem with your WP_Query in portfolio template. Your query looks like this: <?php $query = new WP_Query( array( ‘slug’ => ‘design’ ) );?> And if you take a look at WP_Query docs, you’ll see there is no parameter called slug. So it’s pretty clear … Read more