Permalink Rewrite to include Custom Taxonomy Term
I think you need to include the discipline variable in the custom permalink structure /%discipline%/%postname%
I think you need to include the discipline variable in the custom permalink structure /%discipline%/%postname%
Attaching meta box to specific category/taxonomy in custom post type
Category and tags goes 404
In this specific case, it seems the multiple taxonomies have a clear hierarchical relationship. Rather than a unique taxonomy for building 1, building 2, etc., these can all be located in a single “Buildings” taxonomy that is hierarchical like this: Buildings Taxonomy: Building 1 Floor 1 Floor 2 Floor 3 Building 2 Floor 1 etc. … Read more
The problem is that you are passing a comma separated list of terms, not an array of term. For example, if you enter ‘army,navy,airforce’ in the custom field: $related = array ( get_post_meta($post->ID, ‘related_categories’, true) ); //$related = array(‘army,navy,airforce’); //What you need is //$related = array(‘army’,’navy,’airforce’); You need to transform each term into a array … Read more
You are looking for function get_term_link. Example $my_term_link = get_term_link($cat_lists); Here $cat_lists is term object. Official Documentation
Archive.php is not displaying tags
Get Posts by tag from a custom taxonomy
Paginate custom taxonomy category with wp_custom_pagination
I’ve tested your code and it works perfectly if you register the post type in the init action hook. In your code I don’t see the action hook where you register the post type. Cna you try this? (remember to flush rewirte rules after update the code. Note that I remove the undefined variable $labels … Read more