A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [custom-taxonomy]

Since WordPress 2.3, plugin and theme authors have had the ability to create custom taxonomies-- essentially specialized "categories"-- to help organize information.

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

Custom post type url structure issue

I am building our corporate website based on WP/Genesis "sample theme" and using CPT UI plugin for our custom post types (products) and taxonomies. I am having an issue with the default url structure ...
0
votes
0answers
11 views

custom taxonomies not working

I am trying to make a template for my custom taxonomies. I want to create a shortcode so that i can decide how many taxonomy I want to show and some other settings. But the code is not working. ...
0
votes
1answer
16 views

Create custom post type categories

I've created a CPT called 'Projects' in WP using pods. If I now go to the categories sub menu for this CPT I am presented with a long list of categories that were created for the specifically for the ...
0
votes
1answer
29 views

Get taxonomy term by slug in post on archive page

I have a registered a custom post type called "projects" and assigned a taxonomy called "disciplines". Here's how it looks: <?php // Register projects cpt function projects() { $labels = array(...
0
votes
0answers
16 views

How to create a dynamic content from second segment uri?

First, I have to say that I spend many hours to research but still no luck and I am not sure if I am in the wrong point or even I have no idea what I have to looking for. I have created my custom ...
0
votes
0answers
13 views

Load Taxonomy terms based on Post Type selection

I am creating a widget.I want to get Taxonomy Terms with the selection of Post Type in dropdown list. When a Post Type is selected from dropdown list, the related Terms/categories of that Post type ...
-1
votes
0answers
17 views

Hierarchical Menu for Catalog Site

I'm new to Wordpress and want to make a catalog site with a menu system like HomeDepot.com, Target.com, Walmart.com, etc. but without the option to purchase items. I have created a Custom Post Type ...
0
votes
0answers
10 views

Filtering get_terms loop by custom fields & custom taxonomy

On specific page I’m displaying posts from my CPT („opencourses”). Posts from this specific CPT are grouped by custom taxonomy („kategoria”) - this piece of code works. At the same page I have four ...
0
votes
0answers
5 views

Create an alphabetic glossar for multiple post types

I have created two post types films and film reviews. The slugs are "filme" for "films" and filmkritiken for film reviews Both should have an alphabetic glossar. I've already try to adapt the tutorial ...
0
votes
0answers
17 views

problem : Custom taxonomy template not showing

I make a custom post type and a custom taxonomy for that but the template of my custom taxonomy return error 404 , for example local/mywebsite/people/catea show error 404. function web_people() { ...
0
votes
0answers
18 views

Custom Post Type Taxonomy not showing

I have a class for registering post types based on the Wordpress Plugin Boiler Plate, in the below can anyone tell me why the taxonomy isn't showing in the admin menus at all? /** * Register custom ...
0
votes
1answer
27 views

Add “All Posts” button to custom post taxonomy filter with ajax in wordpress

Does somebody know how to add "All Posts" button to my custom post ("albums") with custom taxonomy ("album_category")? I can see my categories (Mixing, Mastering, Production) and when I click on them ...
0
votes
0answers
36 views

Trying to display related custom posts only in same child taxonomy as current custom post

I have some custom post types 'home' and 'provider' that share a custom taxonomy 'states'. The taxonomy is hierarchical so Georgia is a parent of Atlanta etc. In the single template for the post type '...
0
votes
0answers
10 views

Wp_termmeta may be corrupted? Change on database doesn't reflect on website

By updating a plugin (ACF Pro) while there were permission errors on the server, a strange thing happened that I can't explain to myself in any way. Specifically, the wp_termmeta table, in which, ...
0
votes
0answers
14 views

Register custom taxonomy for all post types but list under pages

How I can register one (or more) custom taxonomy listed under "Pages" in the wp-admin menu but to be usable on the all other (registered) custom post types? Here is code what I use: ...
1
vote
2answers
27 views

Show custom post archive when custom post not specified

I have a custom post type called produce set up in WordPress and a custom taxonomy called produce_category. The URL format for posts in this custom post type is in this format http://mywebsite/...
1
vote
0answers
36 views

Show custom post type relationships by taxonomy

I have two custom post types product and review. The product have a custom taxonomy fruits with terms apples and bananas. All review has a custom field that is a relationship to product, so I can ...
0
votes
1answer
18 views

Query not work for current taxonomy

Hi i want to show current taxonomy post type count by month but it show total post count istead of current tax. please help me. i am trying to solve this problem almost 3 weeks. <?php $...
0
votes
0answers
22 views

The same rewrite slug for multiple taxonomies

I'm using the plugin custom post type ui and I have a custom post type with multiple taxonomies and I'm trying to get my URLs to work. Custom post type → works Taxonomy1 → works_cat Taxonomy2 → ...
0
votes
0answers
20 views

Filter taxonomies by repeater field, placeholder issue

as the title of the post, I’ve to filter a custom taxonomy by custom fields created with Advanced Custom Field (ACF), and I’ve no problems for all the fields except the repeater. This is my code $...
0
votes
1answer
18 views

Dont know why my custom post type not add_post_meta

I tried too many ways to solve but not able to solve, i think my save_car_data_meta($post_id) not working for debugging is use to do var_dump on my first function{ car_data_meta_box_output() } then ...
0
votes
0answers
13 views

How to change custom taxonomy url display ID?

Generlly, the default cateogry permalink of custom taxonomy custom post type is : www.example.com/taxonomy/category_slug/subcategory_slug/ But I just want to display like: www.example.com/taxonomy/...
0
votes
0answers
11 views

Multi-country+language, design controlled by one theme

I'm trying to cater to a site which would serve multiple countries, in multiple languages, while maintaining an easily updatable theme. Right now, I'm using WPMS (one site per country) with WPML (...
0
votes
0answers
27 views

How to add CSS class field in Custom Taxonomy?

This is my code for custom taxonomy register_taxonomy( 'job_location', 'noo_job', array( 'labels' => array( 'name' => __( 'Job ...
0
votes
0answers
10 views

How to limit creation of terms beneath a certain depth?

I'm dealing with some custom hierarchical taxonomies. In the taxonomy templates I'm only displaying the capital terms and one level of child terms. Naturally, I'd also like to restrict, on the backend,...
0
votes
1answer
19 views

Show template part if part of term

I'm not an educated programmer, but usually i can put existing code together so it works the way i want it to. But this time i'm lost, i feel like i've tried everything. I'm trying to only show a ...
0
votes
0answers
13 views

How to show different category options on different pages based on parent

I'm putting together a WP Woocommerce site based on fashion and I'd like to show different subcategory options when the user clicks on the parent category from the main menu. For example, if they ...
0
votes
0answers
30 views

can not get query to display post count by month of current custom taxonomy in custom taxonomy page

I am trying to display post count by month of current custom taxonomy in custom taxonomy page. but it display total count by month <?php $post_type = "sikayet"; $posts = get_queried_object()->...
0
votes
1answer
31 views

Auto Draft Specific Categories Posts after a certain number of Days

I want to put posts from two categories to automatically draft after the number of days like 90 Days from the date of Publish and I created a function with the help of some codes in other forums, but ...
0
votes
1answer
26 views

Related categories order posts by category

How do I order following custom posts by category like so: Cat title player 1 player 2 Cat title 2 Player 5 player 7 As far to the code below is where my knowledge goes so any advise is very ...
0
votes
0answers
16 views

Add custom post type slug before custom taxonomy page

Good part of the day for everyone. I have a taxonomy page, which attached to specific custom post type. When i go to taxonomy page, it's URL hasn't contains custom post type slug. Example: http://...
0
votes
0answers
12 views

Pagination inside wp-ajax not working and return 404

I have an issue when using wp ajax. my WP Query for Custom Post type not working with paginate links I have change base URL but /page/2 return 404 I use Custom post type and custom taxonomy for my ...
1
vote
0answers
21 views

Taxonomies on custom taxonomies

I have a custom post type with multiple custom taxonomies. I need those taxonomies to have a relationship as well. The trick is, I need a child to be able to have multiple parents. I understand that ...
1
vote
4answers
43 views

Show Two custom Post type and their posts on category page

I have Two Custom Post Types "Article " & "News" and they both use same categories like [ audit , income , tax] . I want when i open audit category page then the post showsn like below: the code ...
2
votes
1answer
36 views

How to add a custom taxonomy to a custom post type's document tab

I created a custom taxonomy and wanted to add it to the side-menu of my portfolio custom post type (in the admin area). My custom taxonomy is not loading, but the default one ('category') does. What ...
1
vote
1answer
22 views

Display CPT posts based on specific taxonomy

So I have a custom post type called opencourses. There is a custom taxonomy called typ. Obviously inside I have a multiple terms divided into two main pillars (production and services). ...
0
votes
1answer
40 views

Two different custom post types with same slug in wordpress

I created two different custom post types in wordpress. But I need same slug for both custom post types. But Only one custom post type is working and another post types is showing as 404 not found. ...
0
votes
1answer
23 views

How to display “META” array in register_taxonomy

How do I get the "META" field to go off "META: []" for something filled in? I am using this code: register_taxonomy( 'job_listing_category', 'job_listing', [ 'labels' => [ ...
0
votes
1answer
35 views

Get WooCommerce product category list in functions.php

I am trying to create a an array of WooCommerce product categories to use as a dropdown in the Customizer. The following code is working in a function hooked to 'customize_register' but not in ...
1
vote
1answer
16 views

Get list of taxonomies associated with Subscribers

I used this tutorial so that I would have the ability to associate categories with users. However, I changed the code so that it would show only on Subscribers profiles (not Authors like in the ...
1
vote
0answers
18 views

Group CPT posts by custom taxonomy

Being honest I've stucked with my code. So I have two things: - CPT called: opencourses - custom taxonomy called: typ currently I have a template which displays pure list of CPT posts. And it works. ...
1
vote
0answers
17 views

Issue on Creating Custom Tax Term Dynamically From Another CPT Meta-box On Publish

I have two Custom Post Types called book and publisher. The book has two Custom Fields (Metabox) author_fname and author_lname and the publisher has a Custom Taxonomy called authors Now can you ...
1
vote
0answers
18 views

auto populate list of questions if user select a category xyz

I have a custom post type job with a category of different type. each type of job has it's own list of questions that I want user to answer. is there a plugin that i can use to achieve something like ...
1
vote
1answer
16 views

Filter CPT posts by one or more categories

I'm trying to filter the posts on a CPT by one or more categories. Here's what I have so far: $args = array( 'post_type' => 'cpt-name', 'posts_per_page' => -1, ); // ...
1
vote
0answers
15 views

Custom taxonomy and custom post type - wrong permalinks and template

so here is the deal - I've got a CPT called opencourses. It has some permalink structure, lets say: open-courses. Recently I've decided to add here a custom taxonomy as well. Im doing it via this code:...
1
vote
0answers
20 views

WP_Query search posts by custom post type and custom taxonomy

I have custom posts articles with custom taxonomy tags-articles, I need search all posts with have the term in title, or taxonomy associated with same title (or partial title): Example os published ...
1
vote
1answer
15 views

Some Custom Taxonomy modified dates return false

I have a custom taxonomy and when I call get_the_modified_date($term_id), some of the taxonomy terms return the date but others return false. Even if I go in and manually modify these taxonomies in ...
0
votes
1answer
15 views

Changing permalink of default Post with custom post

I have created new post type for jobs and i was using the default post for my blogs. Now the issue arisen for the jobs permalink as i was using example.com/blogs/%postname% earlier now i want on jobs ...
1
vote
0answers
15 views

Setting up taxonomy to relate various custom post types - advice on structuring?

I have been using post meta to relate various custom posts types and recently realized, based on various discussions here with wiser developers, that taxonomies are probably the way to go. My site is ...
1
vote
0answers
26 views

Should unaltered default loop/query return a list of custom posts belonging to a custom taxonomy?

Short version: I am wondering if the default WP loop (for example in a rather simple index.php) is supposed to return custom posts belonging to a custom taxonomy when the URL is something like https://...