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

learn more… | top users | synonyms

1
vote
0answers
9 views

Assign terms to new capability for all taxonomies

I would like to move the ability to assign_terms away from edit_posts and allocate it to a generic_capability so that whenever new custom taxonomies are created, anyone can assign terms, but do not ...
0
votes
1answer
29 views

Custom post type and taxonomies structure

I am looking for having custom post types and "categories" (limited, known, and just only one) for post. I want the following URLs: site.com/cpt (archive of all the posts inside custom post type) ...
0
votes
1answer
11 views

Get the link of the first post of a custom taxonomy in a custom taxonomy list

Currently, I'm doing this using a custom field, but I would love for this to be automatic. Basically, I have a page that will list all the entries of a custom taxonomy, but I want the links of the ...
0
votes
0answers
24 views

Custom post type taxonomoy template is not showing more than two post

I am trying to make a page on a custom post type(new_arrivals) taxonomies (sieraden, trouwringen, horloges) template. I have made the template taxonomy-new_arrivalstype.php like this. Inside I add the ...
0
votes
0answers
20 views

If on parent term display child terms but on child terms display parent and siblings

I've been searching everywhere including the get_terms codex for a solution, but can't seem to get it right. I have a hierarchical taxonomy called "themes" with parent terms (e.g. "Acquisition of ...
0
votes
1answer
36 views

How to Manage and link certain custom taxonomy?

I'm creating some kind of soccer dedicated website.Assuming we created 4 different taxonomies: Teams, Players, Tournaments, Managers. Team includes two different types: National Team Club ...
0
votes
0answers
16 views

Changed Post Type Name and Taxonomy Name. How to change it in Widget as well?

Hope someone can explain me how to update the widget to the new post type name and taxonomy name. My Old custom Post Type Was "aps-products" and new is "phones" and my old Taxonomy Name was "aps-...
0
votes
0answers
19 views

Change the url of a custom post type to include taxonomy

I'm trying to create a custom post type where there will be a lot of identical post names, but they will have different taxonomy values. Is it possible to define a slug mode where the taxonomy ...
1
vote
1answer
28 views

List child terms if parent but show nothing on children

I have a taxonomy called region with a hierarchical structure; • Southern Africa   • Botswana   • South Africa   • Zambia   • Zimbabwe In my taxonomy-...
0
votes
1answer
32 views

Custom rewrite permalink doesn't work

function create_posttype() { register_post_type( 'events', array( 'labels' => array( 'name' => __( 'Events' ), 'singular_name' => __( '...
0
votes
0answers
26 views

Form to custom post type and custom taxonomy 2

Following on successful addition of custom taxonomy with a great help here I've been banging my head on the following three things. How would I add another taxonomy "trademen-category"? How would I ...
0
votes
0answers
15 views

Issue with temporary link on the frontend

I have a site working with a custom post type (Exhibition), and custom taxonomies (Exhibitions -> Current, Future & Past). When I display the archives for the Future and Past taxonomy values, it ...
0
votes
0answers
20 views

taxonomy_radio is not showing anything in the front-end in cmb2

I am building a website in where I want to show the tag selected from the custom fields (mainly from radio button). I have setup the cmb2 as like below the codes.. add_action('cmb2_admin_init', '...
0
votes
1answer
32 views

Form to custom post type and custom taxonomy

I am actually learning still. so if my question sounds a bit silly. kindly pardon me. But I seriously need help here. Using the links below, I managed to get the form working to the extent that it ...
3
votes
1answer
46 views

Save Filter for Taxonomies

I want to get rid of undesired HTML, mostly being published by my editors when copying text from other sources, like other pages or from Word Therefore I use add_filter( 'content_save_pre' , '...
0
votes
0answers
17 views

Can't show post based on different level taxonomy

Custom post type : book Custom taxonomy : genre I have created some genre and I want to show immediate children genre of a specific genre. I have used following query $p_query = new WP_Query( ...
-1
votes
0answers
27 views

How to Modify Archive Page for Custom Post Type?

I have created a video post type for a new project on my blog using CPT UI plugin and it's working maybe not perfectly. I've followed the tutorial on WPBeginner. To make http://babsreviews.com/video ...
0
votes
0answers
24 views

How to make autocomplete search

Basically i would like to make a autocomplete search form that only work for under a taxonomy. Actually i have created a post type name "property" and there has a hierarchical custom taxonomy called "...
1
vote
1answer
35 views

Add description to custom taxonomy admin metabox

I've created a custom taxonomy: add_action( 'init', 'create_collection_taxonomies', 0 ); function create_collection_taxonomies() { $labels = array( 'name' => _x( '...
0
votes
1answer
32 views

How can I pull the slug of a custom taxonomy and output it in a class?

This is the file I'm working with: <?php $class =''; foreach ($consoles as $console) { $class .= $console->slug . ' '; } ?> <div id="<?php the_id(); ?>" class="<?php echo $...
0
votes
1answer
20 views

Get pages only with a specific taxonomy

I added a custom taxonomy called 'post_tag' to the pages, and I am trying to make a query that gets only the pages that have a specific tag set. I already tried in several different ways, even using ...
0
votes
1answer
38 views

Custom arguments in WP_Query

I am working on a Wordpress theme i.e. Directory engine. It is having a filtering functionality in the header based on taxonomy term slug. I just want to know from where this tax_query is generated ...
0
votes
1answer
43 views

Can you hide empty terms using get_term_children?

I'm trying to get_term_children of a specific term: $style_categories = get_term_children( 29, 'product_cat' ); if ( $style_categories ) : foreach ( $style_categories as $style ) : $...
0
votes
1answer
26 views

Wordpress get all post with like in terms

I have a wordpress site, which has post and custom taxonomy. I want all post of a particular taxonomy with like query. For example: Table: wp_post post_id 100 Table: term_relationship post_id ...
1
vote
0answers
16 views

register_rest_field for custom taxonomy fields that are assosiated with custom post type

I am trying to register a rest field for my custom taxonomy's custom meta fields. I followed the tutorial at Modifying Responses . The code worked great for adding a rest field for post meta data for ...
0
votes
0answers
44 views

multiple url slug for single custom post type

I have created a custom post type for events. Now within events post type I have created 2 categories. One is 'event' and another one is 'workshop'. The 'event' category post url looks like http://...
0
votes
0answers
14 views

Taxonomy archive: Query all posts first, and then group by taxonomy term?

I have two taxonomies: 'season' and 'style'. On my 'season' archive template, the following query groups all the 'season' posts by their 'style' term. This works great. But the problem is that I ...
0
votes
1answer
23 views

Adding predefined terms to a taxonomy

I'm writing a plugin for adding a Custom Post called"Dog". The core of the plugin is strictly based on this one https://github.com/RescueThemes/Rescue-Animal-Custom-Posts I prefer to add predefined ...
0
votes
1answer
26 views

find posts that don't have a custom taxonomy

I am using a custom taxonomy series to keep track of posts that are in a series. I would like to find the posts that do not have a series. I have the following query: global $wpdb; $pr = $wpdb->...
0
votes
0answers
19 views

Custom Permalink Structure for Custom Post Type, Custom Taxonomy, Under a page

Need some help with some custom rewrite rules. I found this post How to create a permalink structure with custom taxonomies and custom post types like base-name/parent-tax/child-tax/custom-post-type-...
1
vote
0answers
25 views

How to rewrite post slug to prevent adding number

The basic idea to add same slug to different custom posts with different categories: http://example.com/gallery/category-A/postname/ http://example.com/gallery/category-B/postname/ But I'm getting ...
0
votes
1answer
44 views

get terms that have post with custom post type between 2 values

I have taxonomy terms for Countries and post type for Destination that have many dates for tour. I want to get all terms that have posts width the Custom Filed (Custom field with Advanced custom field ...
0
votes
1answer
40 views

Can't use pagination with custom taxonomy

I have a problem with custom taxonomies & post types URLs. My post type slug is videos, it has an archive and it works fine: https://uwebdesign.ru/videos/. The pagination on the bottom of the ...
2
votes
1answer
53 views

How to add custom taxonomy to search

So I have custom taxonomy called "cars". I would want that when user does search, it would also search through taxonomy. Meaning that in "cars" taxonomy if I have "Audi" term and user search with ...
0
votes
0answers
15 views

Display posts in a custom taxonomy, grouped by a different taxonomy

The setup: I have a custom post type called products. I have a custom taxonomy called styles with terms modern, classic, rustic. I have another taxonomy called seasons with terms fall, winter, ...
0
votes
0answers
20 views

Filter with 'OR' relationship between child categories, and 'AND' relationship between parent categories?

I have a some categories set up like so: Age Child Teen Adult Language English Spanish French Relevant code below: $cat = (isset($_GET['cat'])) ? $_GET['cat'] : 0; $args = array( ...
0
votes
0answers
55 views

Proper way of listing posts from custom archive with sub-categories

I am trying to create a register of things, using custom post type, named register, and custom taxonomy named register_cat. It will have categories and sub categories, something like this: Cat A ...
0
votes
1answer
55 views

Group posts that matches a term in a loop

I'm working on a website that shows a lot of products, and this is my structure: Product (custom post type) -->Brand (custom taxonomy) ------>Brand A (custom term) ------>Brand B (custom term) -->...
2
votes
1answer
26 views

Taxonomy.php issue with search and filters [Solved]

I'm trying to create a custom taxonomy.php page where my users can refine search into that context. I've tried to create a kind of loop like: <?php if(!empty($_GET['ending'])) ...
1
vote
0answers
16 views

taxonomy tax-name archive

I am creating a taxonomy $labels = array( 'name' => $name->labels->name, //genre 'singular_name' => $name->labels->singular_name, //genre ...
1
vote
2answers
37 views

Displaying ACF image field [closed]

I'm trying to display a list of all my custom taxonomy terms with an image field that I have created in ACF. The ACF image field I have is <img src="<?php the_field('brochure_logo'); ?>">, ...
0
votes
1answer
46 views

Exclude latest post from WP_Query taxonomy term loop

Any help would be greatly appreciated! I have a Custom Post Type 'video', with a taxonomy 'tax-video' and I'm looping through posts in the sub-taxonomy term 't-o-t-w'. I need to exclude the latest/...
0
votes
2answers
20 views

Displaying custom posts in categories

I have created a custom post type "brochures" which i am currently displaying with the code below (using ACF to display the brochure file). At the moment this displays all the brochures individually. ...
1
vote
2answers
51 views

How to get custom post type taxonomy

I have created a custom post type portfolio_posts using the CPT UI plugin. Using the same plugin, I have created a taxonomy portfolio_category. I have made multiple entries under this taxonomy. I ...
0
votes
1answer
22 views

wp_insert_term doesn't work with custom post type's tax

Here is the problem I am having: I have a custom post type called "developer" This custom post type "developers" has a custom taxonomy, "developer", hierarchic I want to programmatically insert into ...
0
votes
1answer
40 views

tax_query not working for taxonomy slug

i have one custom post type 'game' and one custom taxonomy 'console', which is shared by 'game' and 'post'. Now I created a new PHP 'taxonomy-console' and I want to separately display posts from 'post'...
0
votes
1answer
35 views

Get posts and include taxonomy term

How can I return taxonomy terms within post data, from the same query. Currently I'm calling get_posts / wp_query and then looping over and calling wp_get_post_terms. Needless to say it thrashes the ...
0
votes
0answers
18 views

Registering and assigning Custom Taxonomy directly through SQL

I'm running a PHP script that pulls property listing data from a RETS server and inserts the listing date into the WordPress database directly with SQL queries. I'm not using any WordPress functions ...
0
votes
1answer
35 views

Get posts of an specific term of a custom taxonomy

I'm new at Wordpress development and I was wondering (and trying to solve this) for a long time, so maybe you can help me. My WP use a custom post type named Products. And there is a custom taxonomy ...
2
votes
0answers
37 views

has_term or in_category for Custom Post Types

I have property as a custom post type. I want to display a specific message if the property is in the sold category. To do that, I'm using the function below: if ( has_term('sold', 'category')) { ?&...