2022 Developer Survey is open! Take survey.

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
0 answers
13 views

How to Implement Search Functionality?

<div class="col-lg-8"> <div class="row"> <?php $search_term = get_search_query(); $term = ...
user avatar
  • 1
0 votes
1 answer
25 views

How to add custom meta to 'pre_get_terms'?

I have a custom taxonomy with custom meta. I have added the custom meta values to columns in the admin list page just fine. But if I search for values that are in these columns nothing is found. I'm ...
user avatar
  • 281
1 vote
1 answer
24 views

list/consult Taxonomy only for the respective author/creator in dashbboard

I'm trying to filter so that only the creators of the respective categories can edit them. I created a cat_author meta field and associated it to the taxonomy. In this way, every taxonomy has an ...
user avatar
0 votes
0 answers
8 views

WordPress: Export/Import Yoast meta title & description to custom taxonomy

I want to export the Yoast meta title & description from a custom taxonomy with the WP All Export. Unfortunately there is no direct way with the plugin to do that. There is an extra WP All Export ...
user avatar
  • 145
0 votes
1 answer
22 views

Is there a way to nest taxonomies or custom fields deeper than one level below the post type?

In Wordpress we can create a post type which can contain taxonomies (or custom fields). Can these taxonomies (or custom fields) contain anything? For example other taxonomies or something else? If I ...
user avatar
  • 103
0 votes
1 answer
34 views

How do I disable the built-in editor and automatically configure the properties of new pages?

I use a Builder plugin on the site. Members are editors and can create their own page. I want to disable Gutenberg so that they can only edit pages with Buldir. I would also disable the properties of ...
user avatar
  • 3
0 votes
0 answers
51 views

Archive page of taxonomy returns a 404 error

I'm trying to create a template file for a custom taxonomy archive page but I keep getting a 404 error when trying to access that archive page. Basically something like: domain.com/quizzes/quiz-levels/...
user avatar
  • 1
0 votes
1 answer
18 views

Custom taxonomy throw error 404

So in my homework I was given code example and it works for teacher, but not for me. So from what i understand that I'm creating custom post type and custom taxonomy for it, also there is filter that ...
user avatar
0 votes
0 answers
19 views

Should I use a custom post type or a custom taxonomy when creating a relationship? [closed]

I'm developing my own event plugin where I want to give the user that creates the event the ability to book different resources (conference rooms, projectors etc) in relation to the event. The user ...
user avatar
  • 1
0 votes
0 answers
17 views

Choose whether to automatically add a taxonomy with the same name as the post

I created a custom taxonomy within the blog post. It's called "FootNotes." I would like there to be a checkmark inside in the creation of the post that asks me "Are there any notes ...
user avatar
0 votes
0 answers
22 views

using wp_insert_term to create custom terms for a custom taxonomy from frontend form,

I have a form which allows certain roles to add custom terms to a taxonomy. My taxonomy is called Genre (slug genre) <form method='post' enctype='multipart/form-data'> <input type="text&...
user avatar
2 votes
2 answers
145 views

How get custom field from custom taxonomy?

I need to list all categories and their respective posts. Each taxonomy has an image created by ACF in jetengine plugin. I created the loop that returns the list of categories and posts for each ...
user avatar
0 votes
1 answer
18 views

Take a custom taxonomy value and save as a standard Product Tag

I'm trying to find a way to take a custom taxonomy value, and add it as a tag to that same product. Long story short: a third party CRM only respects woo native categories & tags, so we'd like to ...
user avatar
0 votes
1 answer
26 views

Dynamically insert code to custom post type loop

I need to display post from custom post type name "film", from a specific taxonomy "Horror." Everything work fine when I type the taxonomy directly like this: <?php $blog = ...
user avatar
0 votes
1 answer
22 views

how to show records that don't have custom meta value

Running pre_get_posts, I want to order the items by a custom meta value. The problem is that by default this doesn't exist. Only if a user performs a certain action does the meta key/value get added. ...
user avatar
0 votes
0 answers
12 views

How to have multiple search result pages in wordpress with taxonomy terms listed

I am using a custom theme which has custom post types. First one is Doctors another is Hospital. Both doctors and hospitals have a common taxonomy named specialities. Each speciality has some services ...
user avatar
0 votes
1 answer
18 views

Set term on an attachment using wp_set_object_terms and want to display the full term text but it's showing a slug instead

I have a form that visitors use to upload files and fill out information about them and a function that adds those files to the media library and set various fields (including some custom taxonomies) ...
user avatar
  • 146
0 votes
1 answer
22 views

Custom Post Types not queried in Custom Taxonomy archives or Native archives

I have declared a selection of custom post types as an array, allowing post_tags but not categories: // Add Multiple Custom Post Types add_action('init', 'all_custom_post_types'); function ...
user avatar
  • 29
0 votes
0 answers
22 views

How to implement very unusual wordpress routing structure?

Been trying the last two weeks to setup an unusual routing structure for a WordPress website but cannot manage to make it work. Basically there is a custom post type that will get the post url based ...
user avatar
  • 1
0 votes
1 answer
20 views

Custom post type category link redirecting to 404 page

I have created a custom post type. There is no issue with post and it's working. I am getting issue in the catgory links. When i click on the Category name it's redirecting on 404 page I am getting ...
user avatar
0 votes
0 answers
11 views

Change Dropdown jQuery to show/hide but with default place holder that shows all

How to set the jQuery so if default "Department" is selected show all, and only hide all else one other section made. for example, if non selected will be "Department", if "...
user avatar
  • 105
0 votes
0 answers
16 views

How to fix select filter on category

I created a filter where I can filter on different types of machines by a custom taxonomy. It shows the right taxonomies in the filter and after submitting the right url is shown. Problem is that ...
user avatar
1 vote
1 answer
23 views

Add custom taxonomy to post content body?

I've built a CPT that has three different custom taxonomies, I've also built a custom search form that has fields for each taxonomy, and a field for "search by keyword". I want the taxonomy ...
user avatar
0 votes
0 answers
15 views

Get Posts List of Current Selected Custom Taxonomy in Shortcode

I have a custom taxonomy called Album Link (album_link). I created this so I could link all music that has the term e.g (Glorious Album) to an album post type that uses the same term. The goal here is ...
user avatar
0 votes
0 answers
20 views

Taxonomy archive uses incorrect template when query strings are used

I have two taxonomies in use on my site, both of which have their own taxonomy archive templates with different interfaces. I use query strings to perform filtering on each of the archives. My problem ...
user avatar
  • 1
0 votes
0 answers
23 views

WP_Query - How to query all of post types categories

I added a custom taxonomy to woocommerce's products post type. The custom taxonomy is called Brands and is simply used to select the brand of the product. I am using wp_query to query all of the ...
user avatar
0 votes
0 answers
15 views

Wordpress REST API V2: "{CUSTOM_POST_TYPE} matches Term ID List and Term ID Taxonomy Query, but should match only one."

I am trying to use the V2 REST API to filter a custom post type by a custom taxonomy, and if I try to specify the custom post type parameter, the request fails. I understand what the response is ...
user avatar
0 votes
0 answers
43 views

Custom taxonomy terms as children of multiple custom post types

I'm about to start a part of my project that I've been putting off for too long. I'm not looking for code, I'm looking for confirmation that I'm on the right track and any advice Stackexchange may ...
user avatar
0 votes
1 answer
15 views

how does the wordpress rest API work

so I am looking into the wordpress REST API for the first time. I have some questions that may sound ridiculous to those that are familiar with it, but i am confused as to how it works. So natively ...
user avatar
  • 16
0 votes
1 answer
23 views

Show current custom taxonomy

I have a custom post and custom taxonomy my taxonomy is called "department" i have my loop showing my custom post, I am trying to also show all the departments (custom taxonomy) that my ...
user avatar
  • 105
0 votes
0 answers
31 views

wordpress mysql / wpdb ajax load more for terms help

Can anyone pls assist me with my problem. I am not asking for code, but even some guidance as to how to get this working. I have tried many ways, to get my terms to load using ajax load more and seem ...
user avatar
  • 16
0 votes
0 answers
13 views

Remove cpt slug from url and use custom taxonomy instead breaks all other cpt

Im trying to do so, it works but also affects all other cpt (404 for all cpt but not resources one) this is what I have In the cpt definition ... 'rewrite' => array( '...
user avatar
0 votes
1 answer
17 views

Get Comma Seperated Taxonomy Linked Terms and Last Child Separated By "&" Instead Of Comma

I Want to List Custom Taxonomy Terms with Link and Separate Each with Comma but add "&" before the last term. Example: Drake, Migos, Ciara & Nicki I found this answer that shows ...
user avatar
0 votes
1 answer
14 views

WordPress custom taxonomy not showing

I have a simple custom Taxonomy register_taxonomy( 'categories', array('career'), array( 'hierarchical' => true, 'label' => 'Departments', 'singular_label' => '...
user avatar
  • 105
0 votes
1 answer
19 views

Check If Taxonomy A and Taxonomy B has same Slug, 301 Auto Redirect Tax A to Tax B if True in Wordpress

Please How do I achieve this? I have WordPress Default Taxonomy - Tag and a custom Taxonomy - Artist. I want to check for TAGS that have the same slug as ARTIST and 301 redirect it to the ARTIST. ...
user avatar
0 votes
1 answer
33 views

ACF - Retrieve custom taxonomy from a relationship field

I have a custom post type, called prognosis with 3 custom taxonomies, Country, Competition, and Sport, I've also added a few ACF custom fields. I have another custom post type called analysis with an ...
user avatar
0 votes
0 answers
10 views

Duplicate slug/permalink issue while adding same post name

I have my permalink format set to /%taxonomy%/%postname%/ and I have books custom post type with Genre as a custom taxonomy. But the main problem is it is not allowing to add the same post name http://...
user avatar
  • 21
0 votes
0 answers
28 views

How can I add a field for featured image on backend of a custom Taxonomy?

I came accross this problem when trying to create a new wordpress Theme, I want to add a custom term field for featured images on the backend of a custom taxonomy, I have followed this tutorial and ...
user avatar
0 votes
0 answers
26 views

Get child product categories from parent product category for CUSTOM TAXONOMY archive page

Can anyone help me as LoizTheAztec pretty much covered most of what I need here with his very helpful answers. What I need to do is alter this further, and rather than it being on a Product Cat ...
user avatar
  • 16
0 votes
0 answers
14 views

is there a way of getting term children that only shows those from two taxonomies

hi so I am trying to list the terms ( product categories ) but only those that exist in another custom taxonomy, say 'workplaces'. I have the below code that does this, but without taking into account ...
user avatar
  • 16
0 votes
1 answer
24 views

Template for custom post type when taxonomy is in the URL

I have custom post type called books. This has a category taxonomy, called book_types. So, for example: Books -> Fiction -> Da Vinci Code Custom Post Type: Books Custom Taxonomy: Book Types (...
user avatar
0 votes
1 answer
13 views

Restrict access to custom post type based on its taxonomy terms

I'm just beginning to understand the roles and capabilities in Wordpress and I'm not sure that I can do what I would like. I have a custom post type, "cats", that has specific taxonomies ...
user avatar
0 votes
0 answers
14 views

Custom Taxonomy and Categories

I am getting up a site in Wordpress to show tours in countries. I have setup countries as categories and subcategory’s. Europe/Italy/Rome Asia/China/Shanghai I have also setup tours as a custom ...
user avatar
0 votes
0 answers
16 views

How to get related taxonomies based on a category with mysql query?

I have a lot of custom taxonomies for my WordPress site. What I want to do is to Get Related Custom Taxonomies based on a Category. Sample Structure: (Material, OS and Features are Custom Taxonomies.) ...
user avatar
0 votes
0 answers
8 views

wp-query and wp_get_post_terms on custom taxonomy archive page

hi so I am just wondering how I can increment the pagination of a page based upon the terms found with wp_get_post_terms() rather than the post count for the page. this is the process i have: custom ...
user avatar
  • 16
0 votes
0 answers
30 views

custom taxonomy pagination 404 error

I know this question has been asked a lot, and I have been searching for solutions and trying what I found but I am still having issues. When I click on page 2 I get the 404 error For example, I have ...
user avatar
0 votes
0 answers
12 views

Add custom taxonomy using JS in post editor

Very Excited - First Post to SE! I am creating a wordpress app that uses Javascript to call some JSON data and brings it back into the editor. All of that is working great. I can console the data and ...
user avatar
0 votes
2 answers
16 views

How do I set a post slug automatically based on taxonomy?

I have a hierarchical CPT event with taxonomy event_category. One of those categories is "Recap". When a user saves a post (could be draft, publish, or edit existing), if the event_category ...
user avatar
0 votes
1 answer
35 views

Custom archive page for custom taxonomy and pagination issue

so this is something I am trying to figure out for quite some time about my custom archive page for a custom taxonomy 'workplace'. There is many workplaces, and what i want is to display the products (...
user avatar
  • 16
0 votes
0 answers
32 views

Why is my pagination /page/2 taking me to index.php?

Why does my pagination take me to sites front page instead of page 2. The url seems to be correct mydomain.com/category/categroyname/page/2 but it doesnt display posts for 2 page. I tried to reset my ...
user avatar
  • 101

1
2 3 4 5
87