In WordPress, terms are itens set to a taxonomy, i.e. when you create new categories or tags you create new terms.

learn more… | top users | synonyms

0
votes
0answers
6 views

WooCommerce: Get the sub category of a parent category for the current product

In my WooCommerce theme I've created a root category: 'Brands' then for each product I've added it's brand as a sub category to the 'Brands' parent category. On the product page I want to display the ...
1
vote
0answers
9 views

Multi Taxonomies same terms

Is it possible to have multi taxonomies that shares the same terms ? What I would like to achieve : I have a taxonomy which contains all the languages as terms. Then I have second taxonomy called ...
1
vote
0answers
13 views

Admin ajax add tag callback

Is it possible to add an additional callback to admin ajax? Basically, I'm trying to increment the value in an input field of the add form for a custom term after the form is submitted. After the form ...
0
votes
1answer
63 views

How to filter the taxonomy terms based on another taxonomy term

I have created a custom Post Type called "Tour" which Holds up-to five Taxonomies called "destination", "Types", "Month of Travel", "Year of Travel" and "Led by". Now I brought them as drop-down ...
0
votes
0answers
13 views

Wordpress double post name distinguish by term [duplicate]

I am working on a store locating Wordpress template where I have 5 categories for services. In each category I have 500 cities. I have rewritten my url from: http://www.website.com/post-type/post ...
0
votes
1answer
28 views

get_term and get_term_by returning null or false eventhough the term exists

I am trying to use the action hook delete_term, delete_$taxonomy, among other hooks that delete a term but they are presenting the same issue. For example: 1234 is an existing term in the favorite ...
0
votes
2answers
22 views

What is the action hook that deletes a taxonomy term from the backend? And how to retireve the term id before deleting it?

I need to delete some postmeta when deleting taxonomy terms from the backend. Before deleting the term, I need to retrieve the postmeta's meka_key and the term id that is going to be deleted. Use the ...
0
votes
1answer
21 views

Exclude categories by ID

I've searched this site and tried all kinds of ways to exclude categories 1 and 7 from this list, but nothing is working. No errors but doesn't hide the cats either. Categories 1 and 7 are not empty, ...
-1
votes
1answer
31 views

How can I get the term_id from the action hook 'set_object_terms'?

I have the following code and I want to use the term_id inside that function. I aware that the variable $terms contains the term; however, I do not know how to get the term id from it. ...
0
votes
1answer
26 views

Set unique term_id from custom meta keys

I have a function to set a custom meta keys values to a taxanomy, term. $category20 = $fields['field_52dd3aa1d6bc0']; // gps wp_delete_object_term_relationships( $post_id, 'gps' ); ...
0
votes
1answer
55 views

How to add a date creation field when a custom taxonomy relationship is created?

I need to display a list of posts and order it by date. The date of when the taxonomy term relationship was created. Is this possible? If so, how can I approach it? Thank you. EDIT - SOLVED! ...
0
votes
1answer
30 views

Removing a taxonomy term

There is a Wordpress function called wp_remove_object_terms that unfortunatly doesn't seem to work. I am trying to achieve the same ends using the following $post_terms = wp_get_object_terms( ...
-1
votes
1answer
27 views

single_term_title() running before get_the_title() [closed]

This is a strange "problem" but I've had this happen on a few installs and I was wondering if anybody could give an explanation on why / how this happens. On a blog category if I code: <?php ...
0
votes
0answers
17 views

How can I assign two post term with each other?

I have a custom taxonomy named "ingredients" which have terms "salt","egg", "sugar". And another taxonomy "measurements" which have terms "1 spoon", "500 gr", "one ons". I want to assign terms to ...
0
votes
0answers
23 views

Can't fetch custom taxonomies from a plugin file

I set up a custom taxonomy last week and everything seemed to be working correctly, until I realised that from one plugin file I could only fetch some taxonomies, whereas from another plugin file I ...
0
votes
0answers
22 views

display specific term based on custom post type in custom taxonomy metabox

I am using a custom taxonomy 'Categories' for more than one custom post types. While adding/editing a post in one of the custom post type, I want to show only specific TERMS under custom taxonomy ...
-1
votes
1answer
18 views

How to display a term of taxonomy

My doubt is how can I show a "term” of an specific taxonomy, the problem is that I have not found an applying example, just short code lines that don’t show me nothing at all. I want please the ...
1
vote
1answer
105 views

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

Here is the problem I am having: I have a custom post type called "weddingguests" This custom post type "weddingguests" has a custom taxonomy, "friendsof", hierarchic I want to programmatically ...
0
votes
1answer
46 views

Show all terms of a custom taxonomy?

I made a few custom taxonomies and I need to show ALL the terms from it, what I achieved so far is showing the taxonomies that are selected/chosen in a custom post type but I need all of them to show, ...
0
votes
1answer
25 views

Dynamically create/remove terms in taxonomy when custom post type is published/trashed

Am struggling a bit with creating & removing terms based on when a custom post type is published and trashed. Ideally, I would like to create a new term in my custom taxonomy when a custom post ...
4
votes
3answers
203 views

Best pratice to make taxonomy terms translatable without changing slugs?

I have one custom taxonomy with countries and states. I'd like to make these terms translatable but I'm not sure what would be the best way to achieve this. First of all, I don't want the slugs to ...
0
votes
1answer
23 views

How to add terms (without deleting others)

I have a form on my site that allows signed in users tag products from the front-end of the site in a basic form. I am using Woocommerce as the commerce platform. Woocommerce uses Custom Post Types ...
0
votes
0answers
23 views

Extra meta for a taxonomy list

I have a created a taxonomy for my wrdpress theme with check-box 3 parent each has 3 child and want to ad an extra input if user don't want my option then he can give his/her custom option can any one ...
0
votes
1answer
47 views

Tax query array terms display out of order

I want my tax_query terms to display posts in the order I have them listed in the array below but it is not following the order listed. $args = array( 'post_type' => 'staff', ...
0
votes
2answers
51 views

Order posts with custom taxonomy array

I am trying to make my loop go through the posts that are associated with these terms. Currently nothing is being output. <?php $args = array( 'post_type' => 'staff', ...
0
votes
2answers
49 views

Ordering Posts with Custom Taxonomy Terms Array

I can't get the order of my posts (organized by custom tax terms) to come out right in my loop. I made a custom post type of 'staff', in staff there is a custom taxonomy of 'staff-title'. I added ...
0
votes
0answers
38 views

Problem getting ancestor term ID [on hold]

I've been trying to filter out paypal for all WooCommerce product categories except products in sub-categories of a parent category (it has 20 sub-categories and 200+ products). I don't seem to get ...
0
votes
0answers
16 views

How can filter terms by custom meta data

I have terms and i get data like :- $cat = get_terms( "progamdvideo_c", $args ) ; foreach ($cat as $term) { echo $term->slug; } Now i have metadata for this term ...
0
votes
0answers
9 views

Custom terms in custom category taxonomy

I have a Custom Post Type called 'directory'. I have a custom category taxonomy assigned to the post type called 'directories'. This custom taxonomy has several custom terms (e.g. one is 'art ...
0
votes
0answers
11 views

Display authors Whos write in category

i have block that display all category in custom post type of my site like this:- $cat = get_terms( "progamdvideo_c", $args ) ; now in post type i add article, each article have authors, how can ...
0
votes
0answers
21 views

How to include specific post terms in Facebook share?

So I already added the necessary scripts to add a Facebook share button in my posts <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = ...
0
votes
0answers
51 views

How to use if statements to check and echo terms by hierarchy in a post?

I'm seeing a lot of posts on here with helpful snippets to resolve my problem, but nothing has been specific enough to help me - or I just don't understand how to make those solutions work for my ...
0
votes
0answers
13 views

How to make taxonomy both hierarchical and not

I need my taxonomy to be a checklist, so I set hierarchical => false. However, I also need a search functionality similar to when hierarchical is set to true. Is there a way to "combine" both? Or ...
0
votes
1answer
20 views

Can I prevent the user from adding more than two levels deep of terms inside of a taxonomy metabox?

I'm in the process of creating a leveled tutorial structure in WordPress and want to build it so that it sets up the front-end with no code needed from the user. So far, I have a custom post type ...
0
votes
0answers
18 views

Custom search function not finding posts with tax terms even thought the association exists

I have a custom hierarchical taxonomy called "destination_category" with terms like so: Cultural Museum Historic I have a custom post type with posts associated with all three "Cultural" ...
0
votes
0answers
26 views

Get current terms info when querying by multiple taxonomy terms

I'm currently using the following in my archive template to create a menu of taxonomy terms and add a 'live' class to the term that's currently being queried. $termsA = get_terms('MYTaxA', array( ...
0
votes
1answer
38 views

Add current class to queried term on taxonomy term archive

I'm currently using get_terms to list terms of a certain taxonomy. I would like to add a class to the term currently being queried via the archive template. I tried putting together the below code ...
-1
votes
1answer
114 views

list taxonomy terms in current post / current category

i need to display taxonomy terms in a custom post and also in archive / category page of that post type. terms must be from current post or current category ...
0
votes
1answer
80 views

Loop through posts by each term and exclude duplicate posts assigned to several terms

Okay, i'll try to go a bit more into detail. What i did with this code is getting a list of artists ordered by alphabet. In this list i'm showing all corresponding news posts to this artists term. ...
0
votes
1answer
180 views

Get term slug of current post

I am working on a single post type template where I show a navigation menu with links to all the posts from the same term. Now I want to use this template for all the different terms so $term_slug ...
0
votes
1answer
34 views

Set terms in a custom post

I have a custom post "artist" and a taxonomy/category "artist category", and i want to create (by development) a new post and set the category of the artist but it doesn't work. I have tested it with ...
1
vote
1answer
101 views

Conditional statement for if archive page has posts which contain certain taxonomies/categories/tags, show those terms

I am using Isotope to filter posts on the fly from my archive pages. I have a Custom Post Type called "art". On the sidebar, I've created links to yearly archives on my sidebar, i.e. 2014, 2013, ...
1
vote
1answer
60 views

tax_query: What to pass when I want to have all terms?

… $args = array( 'post_type' => 'wr_event', 'posts_per_page' => -1, 'meta_key' => 'event_date', 'orderby' => 'meta_value_num', 'order' => $order, 'meta_value' ...
5
votes
1answer
150 views

Slow wp_term_relationships query

I'm running a large WP instance (currently has 28,000+ posts in custom types) and have been experiencing some odd slowdowns. Upon analyzing the MySQL slow query log, one of the problem queries is: ...
0
votes
1answer
91 views

has_term() does not return when term is assigned post?

Ok, I have an archive loop. In this loop I have this... <?php if ( has_term('race') ) { ?> <strong class="archive-event"><?php the_title($event); ?></strong> <?php } ...
0
votes
1answer
65 views

If has_term, load other theme

This is what I want to accomplish. I've created a taxonomy called categorie with the terms app, web and branding. When a project has the term app, I want to load another theme / blog. When a project ...
0
votes
0answers
63 views

Get term_taxonomy_id from return of wp_insert_post

I am trying to get the term_taxonomy_id from the returned array of wp_insert_term. Below is my code. The term is correctly added to the db, but it fails when i try to get the id and save it to a ...
0
votes
0answers
25 views

Make taxonomy terms appear in the order they were made

IS it possible to make taxonomy terms appear in the order they were made, in the backend? They keep appearing in alphabetical order. I tried using sort but it doesn't seem to be working. This is my ...
0
votes
1answer
28 views

get_terms returns array starting at 4

I am using get terms to return a list of terms within a custom taxonomy. It's returning an array but it starts at index 4. How do I get it to start at 0 like normal?
0
votes
0answers
75 views

Custom post type URL returns 404 error page

I have a post_type called "products" and inside it have two taxonomies "destinations" and "types". Inside destinations i have a list of countries as terms and inside types i have (hotels, cruises). ...