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
1 answer
15 views

WP Query filtering by custom category not showing all relevant posts

Here's a question I've been trying to solve all day: I added a WP Query that would show posts from a category that the admin chooses with a custom field. The post is a custom post type called "...
Jillian Hoenig's user avatar
0 votes
0 answers
9 views

Unwanted redirection to homepage after turning taxonomy to 'public'=>false

I have in my site (a site with Elementor, if it's matters) taxonomy 'aaa' with taxonomy term 'bbb'. When I registered this taxonomy, it was set to 'public' => true. Now I changed this setting, so ...
Avi Rec's user avatar
0 votes
0 answers
32 views

Cannot set custom taxonomies when creating post

I'm migrating some posts from another source to WordPress, specifically to a theme/plugin called Madara, which has some specific taxonomies. I'm using wp_insert_post() to create the post, everything ...
Thiago Dias's user avatar
0 votes
0 answers
15 views

Custom templates based custom url structure in wordpress

I'm working on a website that includes a section for Barbers, and I want to achieve the following URL structure: Barbers {domain.com/barbers This page will have 2 section, 1 section will list Barber ...
Tarun's user avatar
  • 1
0 votes
0 answers
12 views

How to call parent and child category name in separate div?

I have created a bootstrap tab to filter the content according to parent and child category. I want to call parent and child category name in separate div because child category will work like ...
Aman Gupta's user avatar
0 votes
1 answer
24 views

How to get taxonomy image in single.php?

I'm using ACF Taxonomy Images, and I can't display a category's image on a single-car.php This is the code that I'm using to show brand image and country image in taxonomy.php : <?php $term = ...
och's user avatar
  • 29
0 votes
0 answers
26 views

Having issues with edit-tags.php not saving $_POST values for custom post_types including woocommerce product_cat

I added custom fields to WooCommerce category edit form using add_action('product_cat_edit_form_fields') and on update action add_action('edited_product_cat') The fields display correctly. On update ...
Nadal's user avatar
  • 89
0 votes
0 answers
12 views

Taxonomy archives based on Custom Post Types

I have the custom post types, reception_units, year_1_units, year_2_units, year_3_units, year_4_units, year_5_units, year_6_units and resources. I want to create archives for the different post types ...
Sam's user avatar
  • 1
0 votes
0 answers
12 views

Display posts from Custom Post Type, group by term, arrange term groups and arrange items within groups by menu order

I have a Custom Post Type 'my_cpt' and a custom taxonomy 'types' which has several terms, all of which have posts. I want to do is be able to control both the order of the groups (terms from my custom ...
Tom Latham's user avatar
0 votes
1 answer
53 views

Listing Child categories under another child category

I have a custom post type called "alz-products" under this i also have a taxonomy called "products-category" The arranged category structure to manage products as follows Spill ...
user1419170's user avatar
0 votes
0 answers
12 views

Category display using conditions

I have a custom post type(events) created and has taxonomy(event-categories) with parent and child categories. Since im not good in coding, i will try to understand all the help from here. So what im ...
Bordzee's user avatar
0 votes
1 answer
29 views

wp query order posts by custom taxonomy doesn't work correctly

I have custom wp query and i need to sort it according to taxonomy called 'consultation_records' which contains years 2017, 2018, 2019 etc. I used this code but the result is the posts not ordered ...
Yehia Gamal's user avatar
1 vote
0 answers
22 views

How to Filter the Custom term loop based on dropdown

I had created on Custom Post Type 'resource', which has 4 taxonomies ('type', 'sector', 'industry', 'rtag') now i had added 45 posts in following manners Type - Brochure, Infographic, Research Paper, ...
Bhargav Joshi's user avatar
0 votes
0 answers
13 views

add top and bottom content in edit page custom taxonomy woocommerce

On the categories edit page, you can see the box titled top content and bottom content. By adding content inside, you can categorize content at the top or bottom of the page. I created a custom ...
Rohit's user avatar
  • 1
0 votes
0 answers
13 views

Include custom post type that matches taxonomy field in another custom post type

I have two custom post types, one is “maker” and the other “product”. (used ACF plugin) I have a taxonomy field for Business Name, this field is called “choose_business” in the product custom post ...
Nik Nak Sim's user avatar
0 votes
0 answers
12 views

How to assign a single-menu-template to a menu-items in a taxony/ cat/ subcat/ subcat-item

Hi hope really someone can assist. I have created a single-meny-template with post-type-meny, and I have created taxonomy, categories, sub-categories and subcat-items. What happens is that the ...
Brango's user avatar
  • 1
0 votes
1 answer
30 views

Only display top level taxonomy on the edit post page with option to expand sub-categories

We have a custom taxonomy that is hierarchical. It has so many sub-categories that to scroll through them in the edit post page is proving problematic for editors. Is there a way to initially show ...
Ralpharama's user avatar
0 votes
0 answers
29 views

Wordpress display post count for custom post type

I have a custom post type created and a taxonomy with CPT plugin. Using Elementor I created an archive page to show the posts from the taxonomies created. I would like a shortcode to dynamically ...
Cosmin Dan's user avatar
0 votes
1 answer
25 views

Custom fields disappearing when a custom post type is assigned

I have a custom taxonomy page. This custom taxonomy has a few custom fields to populate it's template. A user is able to assign custom post types and media to this custom taxonomy and then those posts ...
solariati's user avatar
0 votes
0 answers
23 views

Pass a taxonomy term slug to the code in functions.php

I need code which would load more posts into a div via WP ajax on a taxonomy term page. My code loads posts if I only specify custom post type without taxonomy term but I need it to load posts only of ...
Brgerg30879's user avatar
0 votes
1 answer
11 views

wp_set_object_terms( $vid, '0', 'priorities'); does not update (initiate) the taxonomy

In the statement wp_set_object_terms( $vid, '0', 'priorities');, $vid is the item id to bind with the tax priorities and initiate with the value 0. It was working for more than two years until ...
Raphael Wiener's user avatar
0 votes
1 answer
112 views

Create a custom taxonomy's term form

i would like to remove/hide the term form in the edit-tags.php page because i need to move it on another page. Is that possible somehow? Thanks
Dail's user avatar
  • 17
0 votes
0 answers
89 views

Creating a page that will dynamically get posts from 2 taxonomies

I have 2 taxonomies type and city I want to have page where it will dynamically query a city and type depending on the link for example: type/condo/city/toronto should get all my properties from ...
Bon Andre Opina's user avatar
0 votes
1 answer
23 views

Custom Post Types Do Not work on this permalink setting https://somedominaname.com/%category%/%postname%/

If in Permalink settings I use this structure then on default post type this gets applied → https://somedominaname.com/%category%/%postname%/ But on Custom Post Types it is not applied effectively and ...
WordCent's user avatar
  • 1,827
0 votes
2 answers
67 views

ACF - How to get custom taxonomy term image field

I have loop that displays only the direct children of a term on a taxonomy page. I also have image field, attached to custom taxonomy. Now, I want to display image in my page template: <?php $...
och's user avatar
  • 29
0 votes
1 answer
30 views

How to get parent and child name in taxonomy page

I have new taxonomy "car-brand" and I want to show name of parent taxonomy in child taxonomy page. My hierarchical taxonomy: bmw -series1 --F20 --G40 -series2 --F22 --...
och's user avatar
  • 29
0 votes
1 answer
28 views

How to return custom taxonomy term in title for archive?

I am building a site with 2 custom taxonomies (wired-categories, wired-types) assigned to a CPT (wired). I want to show the term in the page title when it is brought up using the taxonomy-wired-...
mtm's user avatar
  • 41
0 votes
0 answers
23 views

How to show sub-taxonomies based on selected parent-taxonomy

I have have a custom post type: "cars" for car spec and its taxonomy "cars-brand" Because the number of taxonomies and sub-taxonomies is very large, it is difficult to choose it in ...
och's user avatar
  • 29
2 votes
1 answer
115 views

Show the terms of the hierarchical taxonomy

I'm trying to display buttons with category term names. i am using this code which works to show terms of categories which without hierarchy, but i can't figure out how to adjust it for hierarchical ...
LesCa's user avatar
  • 21
1 vote
0 answers
19 views

Introducing sub categories into the URL

I have inherited a pretty dated project, and it contains a lot of legacy code, which I am still fumbling around in. Currently I have a custom post type with the URL: /something/faqs/{topic}/{faq-post},...
ChrisBratherton's user avatar
0 votes
1 answer
29 views

How to add capability to author role to assign custom taxonomy terms to a custom post type?

my question title says it all. I am not sure if I should approach this by adding a capability to the author role or adding a capabilities array when I register the custom post type or even when I ...
Kropotkin's user avatar
  • 169
0 votes
1 answer
33 views

Custom Post Type Taxonomy Select dropdown list

I've created a select dropdown list of terms from a CPT taxonomy. This works fine. Here is my code <label for="films">Films</label> <select name="films" id="...
alexkodr's user avatar
  • 101
0 votes
1 answer
82 views

Post term block variations not generated for custom taxonomies

Since Gutenberg 13.3 (and WP 6.1), a post term block variation is generated for each custom taxonomy registered. For example, if you register a “Product category” taxonomy, you should able to add a “...
leemon's user avatar
  • 1,806
0 votes
0 answers
51 views

Showing Parent, Grandparent as dynamic select options in Child Custom post type

I have 5 post types in a hierarchial order i.e., Department > Journal > Volume > Issue > Article. I am looking to pop Parent and grand parent select fields dynamically in a child post type ...
Vijay's user avatar
  • 1
0 votes
1 answer
164 views

Remove prefix from custom post type archive page <h1>

What is the proper way to remove the taxonomy prefix from the archive page <title> AND <h1> for custom post types? I've read a lot of documentation that cites how to remove the (prefix?) ...
Mike Ciffone's user avatar
0 votes
1 answer
39 views

List all posts in hierarchy and groupped by each taxonomy

i need some helps to list all my posts from my custom post type in hierarchy structure (like wp_list_pages) and groupped by each Taxonomy. i've tried to use wp_list_pages() but i don't know how to ...
Dewa Alit's user avatar
0 votes
2 answers
26 views

Taxonomy Archive URL + Template

Working on an WP build with custom post types & taxonomies Taxonomy = Reviews Example terms = nes, snes, gamecube I've got a taxonomy archive page, taxonomy-reviews.php Going to the url /reviews/...
Jorge B's user avatar
0 votes
1 answer
35 views

Show taxonomy term meta field on single template

I have a custom taxonomy that has a metadata field with an image url. On the post type single template I have the below php and I need it to echo the meta field but it remains blank. I tried several ...
Biels's user avatar
  • 113
0 votes
1 answer
137 views

Hook function when taxonomy terms change

I have a custom post type with a custom taxonomy. When the custom taxonomy is set to "bar", I want to disable comments with: wp_update_post(array( 'ID' => $post->ID, '...
dtw's user avatar
  • 105
0 votes
0 answers
47 views

How to use custom post type and taxonomy for car specs in wp

I am planning to develop a new car specification website. I want to create a new type post for single page car specs. But I need guidance for the structure of taxonomies. First there is the Brands ...
och's user avatar
  • 29
0 votes
0 answers
15 views

I need a permalink post_type structure with taxonomy slug in it for location landing pages and service pages

I am building a Wordpress site that has landing pages for locations in the UK. Each location needs sub pages to represent a service relevant to that location. To do this, I have set up service pages ...
itsthatseoguy's user avatar
1 vote
2 answers
86 views

Two taxonomies with the same slug

There is a custom post type "real estate" with the slug "sale" and 2 taxonomies city and property type. It is necessary that taxes are displayed refer to the same slug, that is ...
aprinciple's user avatar
0 votes
0 answers
14 views

How to show posts with at least two categories (in admin)

I have a custom post type "cus_type" and and custom taxonomy (category) "cus_category", so that a cus_type can have one or more categories. In the post list in the admin (edit.php) ...
remy's user avatar
  • 1
0 votes
0 answers
19 views

how putting a "null position" in a taxonomy dropdown selector

what have I to add to this code to have a "null position" or "no selection"? At the moment even if I dont choose a value, after I press the edit button, the system gets the default ...
Andrea Sacconi's user avatar
0 votes
0 answers
48 views

How to boost WP custom post REST API GET queries by custom taxonomies

Let's say you have a custom post type custom_type registered in your main plugin file. You also have multiple custom taxonomies registered in your main plugin file. All in all something like this: ...
DevelJoe's user avatar
  • 487
0 votes
0 answers
15 views

Replace post author in header by custom taxonomy

I'm managing a website for a printed magazine, which publishes some of it's best or most relevant articles on their website, like this one: https://dewekker.com/tweetal/4-mei-wees-erbij. This website ...
Prodefu's user avatar
0 votes
0 answers
17 views

How to add categories to a custom post type using wp_insert_post($new_post);

I have a custom post type 'memberfile', and a function for users (members) to upload files. Uploaded files are automatically posted as a 'memberfile' post in the backend. In the form for uploading the ...
Bart's user avatar
  • 1
0 votes
0 answers
15 views

An script/Plugin for automatic page creation per term

My site is such that it introduces the devices and displays their specifications (something like WooCommerce but without the ability to buy), I have 2 Post-Types named "Devices" and "...
x3BLIND8x's user avatar
0 votes
0 answers
24 views

Modify permalink of CPT archive to support two taxonomies

there are hundreds of questions like these but some outdated and some are just bloated with code, hope I can make things simple. CPT Slug: resources Taxonomy Slug: language Taxonomy Slug: program I ...
csaborio's user avatar
  • 112
0 votes
0 answers
42 views

Admin user get message higher level of permission to edit taxonomy

i can't edit taxonomy even i created wp-admin/edit-tags.php?taxonomy=portfolio-filter&post_type=portfolio message show
yass bs's user avatar

1
2 3 4 5
89