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

0
votes
0answers
25 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
49 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
25 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
49 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
53 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
30 views

Wordpress get all post with like in terms [duplicate]

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
34 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
59 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
19 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
33 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
28 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
23 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
27 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
46 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
45 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
56 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
16 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
57 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
61 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
31 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
42 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
59 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
53 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
24 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
46 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
36 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
62 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
44 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')) { ?&...
0
votes
1answer
56 views

wp_get_post_terms on custom post type with custom taxonomies returning an empty array

I am trying to get the taxonomy values associated with my custom post types. I have a function which fetches a post ($object)'s taxonomies, then cycles through the taxonomies and gets the values for ...
1
vote
1answer
41 views

How to get post's current parent term ID?

How do you get the ID of the parent term of the current child term assigned to a post. For a custom taxonomy? Custom taxonomy: "location" Countries Japan USA Mexico Cities New York Austin ...
0
votes
0answers
17 views

sub categories and products that are directly assigned to main category not displaying

I have a scenario in which i have a side bar. In side bar all the main categories are displayed. There are also some sub categories that are assigned to main categories. Now i want to display both sub ...
0
votes
1answer
13 views

tax_query not working

I have tried using the id, slug, name, and take the tax_query as an array of arrays but still it will output all the posts from that post type. Here's my custom taxonomy, 'Event Specific': function ...
1
vote
1answer
39 views

How to get the number of child categories a specific parent category has?

How do we count the number of child categories of a parent category? I am using a custom taxonomy, called: "authors". I found this code, which does count the number of child categories, but only ...
0
votes
0answers
17 views

add date of most recent custom post type

I have a custom post type called products, it is categorized by a custom taxonomy called product_category. I'm trying to have a "last updated on" note on the taxonomy archive pages. I was hoping ...
0
votes
0answers
70 views

How to query post from sub-categories on category archive and display posts?

On a custom taxonomy archive from the taxonomy called 'books' (taxonomy-books.php) I want to list all subcategories that are assigned to the parent category. And then for each subcategory I want to ...
0
votes
1answer
45 views

How to get list of custom taxonomies based on custom post type

I have 2 custom post types and custom taxonomy assigned to both post types. On the page where I list posts (custom post type archive page) I would like to dispay a list of all custom taxonomy terms ...
0
votes
0answers
19 views

Taxonomies not display the content

I create a custom post and a page to post a specific content. My functions.php: add_action( 'init', 'create_post_fotos' ); function create_post_fotos() { register_post_type( 'Fotos', array( ...
2
votes
0answers
45 views

Filtering a custom post type by custom taxonomy in archive template

I've seen this question posted in different forms before, but most of those solutions are centered around the admin interface, and I haven't found any answers that apply to the front end. I've got a ...
0
votes
2answers
148 views

I have a custom taxonomy assigned to two post types. How do I create URLs for different term archives for each post type?

I am working on a site for a client and am using a plugin that adds an "event" custom post type and an "event-category" taxonomy. I have also attached the "event-category" taxonomy to the default ...
0
votes
0answers
12 views

Use tax_query to sort posts by most “categories in common”

I know I can use tax_query but what I really want is to sort them by "most categories found that are equal" Is there a way to do it easily?
1
vote
1answer
40 views

How to show the entries in a custom taxonomy by author?

I have a website that I'm building for people to write their own books. I have a custom taxonomy for this, labeled books. I now need a link or pull-down that contains all of the authors on the site, ...
1
vote
1answer
25 views

Catchable fatal error on custom category post

I get this error after deleted a few of unused category's product on my woo theme: Catchable fatal error: Object of class WP_Error could not be converted to string in D:-mytheme\wordpress\wp-...
2
votes
0answers
22 views

get / list categories and counts filtered by custom taxonomy term

In my post 'post type' besides "categories" I've a custom taxonomy called "product-types". The category is actually more "manufactures" of the product types. I've a product-types page where I list ...
0
votes
1answer
66 views

Get Attachment Category Name

How can I call the name of an attachment category? Something that would look like <?php get_attachment_category_name ?> or $attachment->category_name This would simply output the name of ...
0
votes
1answer
26 views

Best approach to allow front-end display of posts’ reviewers?

My first question here; please forgive any protocol lapses. I manage an academic journal that publishes on Wordpress. We use Co-Authors Plus to allow collaborative articles. Each article also has two ...