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

Function to delete a term when a custom post with the same slug is trashed

I have a function that whenever i add a new post in the custom post type "artists" it adds a new term with the same name in the custom taxonomy "artists". function ...
0
votes
1answer
58 views

Custom field drop down to set the term of the post when published

In my functions.php i'm trying to check if the user has selected a value in a custom field drop down and then set that value as the term of the post when it's published. I'm using the following ...
0
votes
1answer
854 views

Taxonomy Drop Down with hierarchical view using $terms

I asked this on the Wordpress forum but dint get any replies now I hope I can ask it here. I found the code here My Code is: function exc_custom_taxonomy_dropdown( $taxonomy, $orderby, $order, ...
0
votes
1answer
299 views

wp_delete_term or wp_delete_category?

Hi I need a simple piece of code to delete a category for a custom plugin, but I just found two function references that seems quite the same: Function Reference: wp_delete_term Description: Removes ...
0
votes
1answer
158 views

Altering term_id and name via $wpdb class

$s = $_POST['submitterms']; $querystr = " SELECT $wpdb->terms.* FROM $wpdb->terms WHERE lower($wpdb->terms.name) like '%$s%' "; ...
0
votes
1answer
182 views

Multiple category lists on one page

Is it possible to use wp_list_categories( $args ) several times on a page to list different groups of terms from a taxonomy? The following code displays on term#58 together with a child that says "No ...
0
votes
1answer
145 views

Passing values by form to create a query

I have this structure: taxonomy - term1 -- child term1 -- child term2 -term2 -- child term1 -- child term2 I have two select boxes. First one shows the parent terms (term1 ...
0
votes
1answer
366 views

Get object terms with no children?

Others have asked how to only get parent terms, but I need to get the deepest term for the post of a specific taxonomy. Is there a way I can only get terms where the number of children = 0?
0
votes
1answer
354 views

Unable to display the post titles in a drop down

I have post type Dealers and a taxonomy Manufacturer i have a list of manufacturers and relevant posts. Im trying to display the list of manufacturers in a drop down, when a manufacturer is selected ...
0
votes
2answers
370 views

Related terms - Terms that feature in post of current term

Not sure how hard this is but i'll try and explain it as simply as possible. I have a custom post type called: "Movies" with an taxonomy term called "Actor" For example purposes suppose were on the ...
0
votes
1answer
222 views

Order taxonomy terms by the frequency of use in the last 30 days

I would like to know how to order the terms in some taxonomy according to their frequency of use in posts in the last 30 days. What I am looking for is the most optimal method how to add "orderby" ...
0
votes
1answer
162 views

How do I assign a custom post to all terms in a custom taxonomy?

I'm building a database of cities as a part of a "location" taxonomy. In order for the terms to render, as far as I've found, they need to have some type of content associated with them. My ...
0
votes
1answer
2k views

List custom taxonomy terms

I am trying to display all of the terms for a custom taxonomy(characters), the taxonomy is related to a custom post type(books). What I would like to do is display all of the terms for characters, so ...
0
votes
1answer
171 views

Add Column to Term Database

Currently the Term Database has four columns. term_id name slug term_group. I would like to add another column called menu_order. How can i do this? The outcome i want is to be able to order my ...
0
votes
1answer
132 views

How to create a list of terms who's posts also have a predefined external term?

I have a pretty extensive music collection and my friends are always borrowing my stuff. I would like to keep better track of my library so I'm building a sudo-checkout system using WP. The ...
-1
votes
1answer
422 views

How can I get parent term from a child term

I have a custom post type and a taxonomy, when adding a post if I select a child term and not the parent term then I cannot use get terms as the parent term wont be in the array as it wasn't selected ...
-1
votes
3answers
710 views

Get terms in hierarchical taxonomy

I have a hierarchical custom taxonomy ("photos"), with 3 parent terms color location year Each parent term has several children terms. I have associated the "photos" taxonomy with pages and have ...
-1
votes
1answer
87 views

How to extract one field from wp_get_post_terms objects?

I know I can get an array of term objects with this line: $terms = wp_get_post_terms($post->ID, 'mytaxonomy', array('fields' => 'all')); Or, I can get a simple array of term names with this: ...
-1
votes
1answer
30 views

is action hook not working on quick edit?

This code is not working on quick edit? function cpt ($term_id) { print_r($_POST); } add_action('create_post_tag', 'cpt');
-1
votes
1answer
113 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. ...
-1
votes
1answer
32 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
votes
2answers
232 views

query only direct child and sub-terms of a current term archive

i'm using woocommerce on my theme, and it comes with a proudct_cat term as a defualt catagory on the shop proudct. I need to show on every proudct_cat archive its direct child and the sub-tems, but ...