All Questions

Filter by
Sorted by
Tagged with
7 votes
1 answer
20k views

How to pass URL parameters for advanced taxonomy queries with multiple terms for one custom taxonomy

This answer provides the code for a query that returns an OR match on a taxonomy term: global $query_string; $args['tax_query'] = array( array( 'taxonomy' => 'status' ,'terms' ...
marfarma's user avatar
  • 2,606
4 votes
1 answer
4k views

Templates for Custom Post Types and Custom Taxonomies

I am working on a custom theme for a network of sites that are deployed under a WordPress MultiSite installation. Within these theme I create 4 custom post types that have two taxonomies added to all ...
aifrim's user avatar
  • 516
1 vote
2 answers
4k views

Custom Post Type with Nested Taxonomy and Template Files

I have a custom Post Type of "Portfolio" with a rewrite slug of portfolio. So the URL on the frontend is: domain.com/portfolio. I have a custom Taxonomy of "Categories" with a rewrite slug of ...
Michael Ecklund's user avatar
0 votes
3 answers
1k views

Custom Post Type Archive Template

I have similar problem to this one: Custom Post Type Template - Archive I have a WordPress custom post type called coupon. I try to assign the template to it by using archive-coupon.php, but it goes ...
Godforever's user avatar
7 votes
1 answer
13k views

Custom Taxonomy Archive Page

I have created a Custom Post Type with the name Product. I have created a Custom Taxonomy for that post type by the name of products. That taxonomy have a few terms (printer, keyboard, mouse etc) I ...
Keat's user avatar
  • 447
4 votes
2 answers
6k views

Custom Taxonomy in plugin and template

I have a plugin that I am developing that is using custom post types and taxonomies. My question is this. How can I load the content/theme data from my plugin on to the page when the go to the custom ...
brenjt's user avatar
  • 233
4 votes
1 answer
3k views

How to display a listing template of a certain taxonomy?

I'm trying to figure out how to display a list of specific taxonomy (categorycourses). In functions.php for the theme I have: //Register custom taxonomy for courses-categories $course_cat_args = ...
bestprogrammerintheworld's user avatar
1 vote
1 answer
247 views

Which template name to use for taxonomies but not their terms?

I can't figure out which template name to use to modify custom taxonomy archive page, but not the one for terms in that taxonomy. My goal is to show terms list in custom taxonomy archive and in ...
Maikal's user avatar
  • 638
3 votes
1 answer
2k views

Custom taxonomies, with custom rewrites/slug, AND loading a taxonomy archive template from a plugin

I think maybe my understanding about rewrites and templates for custom taxonomies and CPTs is wrong and maybe someone here could help me solve my problem and educate me. So I have a post type, "...
rugbert's user avatar
  • 168
2 votes
1 answer
450 views

Create separate template for shared custom taxonomy with shared terms

I have created custom taxonomy called "product_category", it has been shared with post type "books" and "movies" . So I need to create a different template for both post ...
user2506619's user avatar
1 vote
1 answer
626 views

On Taxonomy Template page, want to add Post_Type

I have a custom taxonomy template page in my theme. Essentially, when someone clicks on a term link into this taxonomy, I -ALWAYS- want to add a specific post-type to the query. I'm not entirely ...
Sam K's user avatar
  • 388
1 vote
2 answers
1k views

custom post type archive template per custom taxonomy term

I want to list all posts with a corresponding template for a custom taxonomy term of a custom post type. To make it easier to understand: The custom post type is called PUBLICATIONS and has a custom ...
gfaw's user avatar
  • 176
1 vote
1 answer
14k views

Custom taxonomy template not working

I have created a custom post type named property, and a taxonomy named city is attached to this post type. There are several cities (terms) like toronto, taiwan,dhaka. I want to create a template ...
Mithun Sarker Shuvro's user avatar
0 votes
0 answers
1k views

custom taxonomy - Template not working

I have custom post type and custom taxonomy but my template is not working: CustomPostType add_action('init', 'registerCustomPostTypes'); function registerCustomPostTypes() { register_post_type('...
Paul's user avatar
  • 111
0 votes
2 answers
1k views

Include different loop templates in search query

I have differnet Custom Post Types in my blog. I also have custom templates for each of them like loop-{$cpt-name}.php I would like to include different cpt templates dynamically in search results ...
Godforever's user avatar
0 votes
4 answers
2k views

Make Custom Taxonomy Category Use Parent Template

I have a Wordpress custom post type set up in my functions.php called "Research" I have a custom taxonomy called "Classifications" Under that taxonomy I have the terms/categories: Old Research (...
streetfire's user avatar