All Questions

Filter by
Sorted by
Tagged with
0
votes
0answers
15 views

Custom Post Taxonomy Template Not Loading Properly

I have a website I inherited that is exhibiting strange behavior for a custom post type taxonomy template. The post type is resource, the taxonomy is resource_brand, and if it matters, the taxonomy ...
0
votes
0answers
188 views

is_tax not working for custom taxonomy

I am trying to over-ride a custom taxonomy file from my plugin. Actually, I have 2 custom taxonomies: destination & activities. I have successfully over-ridden the taxonomy template for activities ...
0
votes
0answers
33 views

How to insert my custom taxonomy template via plugin?

I've created a plugin to manage my bookstore site. In this plugin, I've created a custom taxonomy call "authors" to manage book authors. I want to display archives of Authors, so I've created a ...
0
votes
0answers
14 views

Template for Custom Post type with Custom Taxonomy for a particular Term

I am creating a custom post type with its own custom taxonomy. I then want to create two different templates. Post with a particular Term in the custom post type show one template and the remaining ...
1
vote
1answer
536 views

404 for a custom taxonomy?

Why do I get 404 for my custom taxonomy? add_action('init', 'custom_taxonomy_flush_rewrite'); function custom_taxonomy_flush_rewrite() { global $wp_rewrite; $wp_rewrite->flush_rules(); } ...
0
votes
0answers
34 views

Javascript not being loaded only in custom taxonomy template

I have a taxonomy called categorias_de_receita in my plugin and a custom template for displaying this taxonomy posts. I don't know why Javascript files are not being loaded only in this specific ...
1
vote
1answer
1k views

Woocommerce custom taxonomies page

I am trying to add a custom taxonomy to woocommerce, which I did. It is working nicely. However, WordPress is not displaying it as woocommerce category page. Instead, it tries to load it as a regular ...
0
votes
1answer
26 views

Main query not querying any posts in custom taxonomy template

I have created a template for my custom taxonomy, byron_community_cat. I have named it taxonomy-byron_community_cat.php. My problem is, when using the default WordPress loop, it does not display any ...
0
votes
2answers
167 views

taxonomy - templates are not loading

I have registered taxonomy: $taxonomySetup = [ 'label' => __('Products catalog'), 'has_archive' => false, 'hierarchical' => true, 'rewrite' => [ 'slug' => __('...
0
votes
0answers
455 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('...
0
votes
1answer
64 views

Custom taxonomy with custom post type template not showing

I have registered custom taxonomy: add_action('init', 'registerCustomTaxonomies'); function registerCustomTaxonomies() { register_taxonomy( 'products', 'product', [ '...
0
votes
1answer
165 views

Custom taxonomy template for custom fields loop [closed]

I have jobs custom post type which contains custom taxonomies Location Company State Qualification and added custom fields Name of company - text field Post Name - text field Number of posts - ...
0
votes
2answers
45 views

Avoid taxonomy-%term%.php if more than one taxonomy

I have a site with multiple custom taxonomies which are used for filtering posts. One of the taxonomies has a taxonomy-%term%.php template file. /?country=the_country shows the country taxonomy ...
0
votes
0answers
88 views

Templates for CPT not working

I am working on a project where I have created 3 CPT with some taxonomies. For each custom post type, I have created the following custom templates: single- archive- taxonomy- Taking as example the "...
2
votes
1answer
150 views

How do I provide a “show all posts” link in a paginated term archive?

I have a custom post type called game_go and a taxonomy called game_go_series. Some example terms are chase , compete, victory, etc. I have a file called taxonomy-game_go_series which displays only ...
0
votes
2answers
201 views

Single taxonomy for different custom post types

I have two custom post types: books and authors. Both of them have attached a custom taxonomy - genres. How would I display the books in the fiction genre? What would be the URL used and the name ...
0
votes
0answers
48 views

How to get a terms and posts associated with another term?

The wording of the title is terrible, but I am not sure how else to word it. I have two taxonomies: product_categories and brands. I'm on the page /product-categories/grocery. So the term here is "...
1
vote
2answers
56 views

Trying to manage templates on a blog with lots of custom taxonomies

In my most recent project, I'm dealing with a website that included dozens of custom taxonomies, couple of post types, content, etc. and required different templates for different authors or tags. ...
0
votes
2answers
542 views

Custom taxonomy archive template not recognised

I have a custom post type, named 'products', it has a custom taxonomy that is called 'collections'. This is how I have registered the taxonomy. $productTaxonomyArgs = [ 'public' => true, '...
1
vote
0answers
35 views

Wordpress Doesn't Generate Taxonomy Archive

I have a post type named 'publication' and a taxonomy named 'area'. For some reason, I cannot seem to get Wordpress to generate a taxonomy archive for the terms of 'area' from my custom taxonomy.php ...
0
votes
0answers
23 views

How should i name the .php file to show custom posts under a taxonomy's term?

Taxonomy name : brands Custom post types (3) : watches, jewelries, accessories Right now the taxonomy "brands" has only one term and that is "rolex". I have used rewrite so the url is like that : ...
0
votes
1answer
351 views

I want to create an archive and single page for a custom taxonomy for a custom post type

I have researched the heck out of this so forgive if I missed the answer somewhere... I have registered a custom post type 'audiotalk'. Each talk can have one or more teachers so I registered a ...
0
votes
1answer
2k views

pagination not working on custom-taxonomy template

I created custom taxonomy and registered it with "Pages" with the following code //hook into the init action and call create_book_taxonomies when it fires add_action( 'init', '...
3
votes
3answers
2k views

Custom Taxonomy Template not respecting 'include_children' => 'false'

I've created a custom taxonomy, for a custom post type, and created a custom page for it, the usual, etc. Problem is I want to only show the custom posts that are part of the category, and not show ...
5
votes
1answer
7k 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 ...
2
votes
1answer
523 views

Custom taxonomy query for a custom post type

I have a custom post type called news with a custom taxonomy called news category. Right now I have a template called taxonomy-news_category-press.php where press is one of the news_categories. The ...
1
vote
1answer
106 views

Custom taxonomy returns 404

I'm getting a 404 page when I visit my custom taxonomy page. Custom taxonomy is called 'manufacturer'. I also have a cpt called 'product'. EDIT 1: It has something to do with the cpt rewrite. If I ...
0
votes
1answer
52 views

Archive for a Taxonomy of a Custom Post type

I have a situation like this: /disrupt-founders/disrupt-categories/help-me-be-healthier/ What I am wanting to do it create an archive page that is unique for the Taxonomy based on the Custom Post ...
0
votes
2answers
284 views

Custom Post Type tag taxonomy “Page Not Found”

I have a custom post type that looks like: register_post_type( 'letters', array( 'labels' => array( 'all_items' => __( 'All Letters', 'text_domain' ), 'name' => __( '...
1
vote
1answer
307 views

Meta description - template code to get category description

Below is the code I wrote for header.php so that the description for a product category can be obtained and used for the <meta> description tag when viewing such a "page" on the site. Is ...
0
votes
2answers
941 views

Template filter for custom taxonomy terms

I want to replace custom taxonomy term template with my custom template. Like using add_filter('single_template','customFun'); replaces single custom post type template. I have a custom taxonomy e.g ...
1
vote
2answers
3k views

Different single page templates for taxonomies

In my WordPress theme I created the custom post type articles. I also created two taxonomies called article & news. How can I display each taxonomy in its own single template? For now it only ...
0
votes
1answer
119 views

Get template part with CPT and Custom Taxonomy conditionals

I have two Custom Post Types Video and Gallery and a Custom Taxonomy Status with the term Featured. Right now I'm showing these CPT in my index.php, but I want to style each of them, so I'm using ...
0
votes
1answer
483 views

Loop through custom posts by taxonomy and display the titles in a list, it is repeating 8 times

I have been messing with this for too long after searching the internet through what seems like hundreds of posts and the codex. I feel like I almost have it but am missing something. My limited ...
0
votes
1answer
45 views

Post not showing in my custom advanced search

I've created a custom-search-page for my theme that have to search in my CPT non-hierarchical taxonomy and eventually filter the results if some preference is inserted through the options form of ...
4
votes
2answers
1k views

Taxonomy Templates… by hierarchical level?

Is there a way to use different templates for different levels within a hierarchical taxonomy, specified by filename. I know about taxonomy-taxonomyname.php and taxonomy-taxonomyname-term.php ...
1
vote
1answer
505 views

Categories overview that links to page displaying posts

I am trying to achieve the following A page that displays a series of categories with a title, description and an image When a category is clicked, all posts that belongs to that category gets shown....
0
votes
1answer
27 views

How to create a template to show child terms of a MAIN taxonomy

I've registered a custom post type called video, like so: add_action( 'init', 'create_post_type' ); function create_post_type() { // Videos Post-Type $labels = array( 'name' ...
0
votes
1answer
109 views

Returning One custom taxonomy term name

I have a custom taxonomy called cities and right now the only city is las vegas. I am trying to use the code in question to echo "Las Vegas" - for the posts that are associated - on the search results ...
0
votes
1answer
686 views

How to change single custom post template by custom taxonomy?

Working on a publication (wordpress based) website, having a custom post type "article" with custom taxonomy : language (with only two options: French, English). I made a custom post type template (...
0
votes
1answer
22 views

template structure for CPT not clear

I am a little confused with CPT and custom taxonomies. I created CPT named 'Profiles' and did not create any custom taxonomies for it. So categories is the default taxonomy for it, I tried template, '...
0
votes
1answer
764 views

Make child taxonomy categories use a set template

I have a custom taxonomy called product-categories. Currently all categories use the master template (taxonomy-product-categories.php). The category tree is roughly as follows. Products - Cheese -- ...
1
vote
1answer
1k views

Template for all categories of a custom post type?

Hello ladies and gents! I'm hoping you can help me with this one.. if it's each possible. I (ideally) need a general template for the categories of a custom post type. Custom post type: Listings (...
0
votes
2answers
119 views

Wordpress Custom taxonomy template

I am trying to create custom template for custom taxonomy. For example i have a custom taxonomy registered in WP with name brands and slug brand i used following code to register custom taxonomy. ...
1
vote
1answer
89 views

Create and set templates for custom taxonomies

I've created a custom taxonomy for a custom post type. Code: add_action( 'init', 'register_taxonomy_mytaxonomies' ); function register_taxonomy_mytaxonomies() { $labels = array( 'name'...
1
vote
1answer
214 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 ...
1
vote
2answers
909 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 ...
0
votes
2answers
390 views

How to add custom content to custom taxonomy

I'm currently learning Wordpress. So my theme has a custom post type called portfolio. I'm using this online code to add a custom taxonomy to this portfolio custom type: function ...
0
votes
2answers
434 views

Only One Post of Custom Post Type Appearing on Template Page

I'm not sure if it's a database or template issue, but on this template page only one post of my Custom Post Types are appearing. There should be at least two. The page uses an isotope.js script, but ...
1
vote
1answer
8k 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 ...