Articles of custom taxonomy

Custom Taxonomy Template file not being used

I know there are countless questions on here about this, but all of them suggest the same thing I’m already trying to do, but I appear to be missing/misunderstanding something here. I’m creating an FAQs section for a site, and have the following: faq custom post type faqs custom taxonomy for categorisation of FAQ pages […]

Terms change id after importing

I’m using WP import/export function. In exported XML file term_id is 4, but it becomes random number after import which is breaking my widgets structure. Is there any way to force or keep old term_id when importing to new website?

Custom Post Type Archive Page Filtering

I have a custom post type with a hierarchical custom taxonomy. The taxonomy has several parent terms and each parent term has several child terms. The posts are assigned to one parent and (mostly) one child. I want that my archive page{cpt_slug} only displays the parent terms. After a first selection, the user will […]

What's the best way to add taxonomy's image in 2017?

Need to build image upload for custom taxonomies. I used Categories Images plugin before, but now I need 2 images and this plugin doesn’t fit anymore. I’m looking for a best solution. Does anybody knows it in 2017?

Best way to redirect taxonomy terms to pages

I have been wondering what would be the best way to redirect taxonomy terms to pages in WordPress. For instance – let us assume we have a taxonomy called ‘product type’ for a CPT called ‘products’ and the taxonomy term is ‘computers’. The URL of the term’s page would now be In order to […]

Custom taxonomies not showing up in admin menu

I have defined a few custom taxonomies in my functions.php using the following code: <?php add_action( ‘init’, function() { $labels = array( ‘name’ => _x( ‘Resource Centers’, ‘taxonomy general name’, ‘textdomain’ ), ‘singular_name’ => _x( ‘Resource Center’, ‘taxonomy singular name’, ‘textdomain’ ), ‘search_items’ => __( ‘Search Resource Centers’, ‘textdomain’ ), ‘all_items’ => __( ‘All Resource […]

Am unable to reset a query properly

I have a custom taxonomy archive page called ‘taxonomy-teacher.php’ where I display teacher meta (title & description) and then I loop through all the teacher’s talks (audio files), which have custom post type ‘audiotalk’. ‘teacher’ is a non-heirarchical taxonomy for ‘audiotalk’. Everything works great. ‘audiotalk’s also have a heirachical custom taxonomy called ‘audiotalk-categories’ so people […]

Custom page category taxonomy 404

product/office/ return 404 error.How is that even possible? should it not go down to index if page is not found ? This is my archive.php file: <?php get_header(); ?> <div id=”wrapper”> <main id=”main” class=”site-main” role=”main”> <div class=”container”> <?php get_header(); if(have_posts()) : while(have_posts()) : the_post(); echo ‘<a class=”a-product” href=”‘.get_permalink().'”>’; echo ‘<div class=”col col-s-1 col-m-4″>’; the_post_thumbnail( ‘large’, […]

Date-based permalinks for Custom Post Type, and custom taxonomy permalinks

In my theme (a child of Twenty Sixteen) I’ve created a new Custom Post Type, pg_review. I’ve associated two custom taxonomies with it, pg_genres (hierarchical categories), and pg_authors (like tags). Everything is working fine except permalinks… Despite trying to understand and adapt various examples I’m going round in circles. I would like these permalinks to […]

Using Advanced Custom Fields Relationship Field to select a taxonomy term

I have a site where I’ve got a post type called ‘small banners’ which are basically adverts that i need to call on normal pages (This is fine, I’ve done this) but I also need to use this functionality on a Taxonomy term. ACF doesn’t have the functionality to select taxonomy terms themselves just to […]