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
311 views

Query set using tax_query with relation 'OR' modifies category object?

(Update: Please see the edits far below.) The code: function itsme_better_editions( $query ) { if ( $query->is_category() && $query->is_main_query() ) { $query->set( ...
0
votes
0answers
12 views

What to do with shared terms splitting in Wordpress 4.2?

I read about a possible break compatibility change in Wordpress 4.2 called "shared term splitting". I download the plugin from jjeaton (https://github.com/jjeaton/wp-find-shared-terms) that show you ...
0
votes
0answers
18 views

Custom post type term names with ampersand in the term name

Every time I think I've got a handle on WordPress it finds a way to baffle me. Recently we've been having an issue with not being able to attach term names with an & (ampersand) character in the ...
0
votes
1answer
475 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
363 views

Want wp_get_post_terms return in arbitrarily order, how to do?

Function below returns in alphabetical order and not, as wished, in arbitrarily order. Is it possible to -not- return in alphabetical but in exact order as given in the array? ...
0
votes
1answer
48 views

Get all taxonomies for all post types

I would like to get all the available taxonomy for each (custom) post type. My aim is to list for each post type, each taxonomy like category, tag and for each of these taxonomy to get all register ...
1
vote
1answer
622 views

Display posts from an author using search parameters (not author template/query_posts)

Is there a way to retrieve a list of all the posts by an author using search (example: ?s&author=xxx)? I can't use query_posts or author template (don't ask why, take it as a condition). And it ...
0
votes
2answers
850 views

Use get_term_children to get the sub category of a parent category for the current post

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 ...
0
votes
1answer
366 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
52 views

Taxonomy search/filter with multiple taxonomies and multiple taxonomy terms

I am trying to build an advanced search form that allows users to select from two taxonomy based drop down menus. Each taxonomy drop down has taxonomy terms from which the user can select multiple ...
0
votes
2answers
508 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 ...
1
vote
1answer
868 views

How to order get_term_children output by alphabetic order

The following creates drop-down lists of my custom taxonomy children, but the order of the output seems to by creation date, not by alphabetical name. I tried adding orderby to the array with no ...
1
vote
1answer
869 views

Displaying custom-taxonomy-terms sorted by parent/child-hierarchy?

I have a custom post type with a custom taxonomy (to show some "best practice" examples on my website). On the single-post-page (single-bestpractice.php) I wanted to show all the terms (categories) ...
0
votes
1answer
16 views

wp_update_term not creating new unique slug

I want the slug to be recreated every time the term name is updated so it accurately reflects the name. wp_update_term(10, 'artists', array('name' => 'my new name')); The documentation ...
9
votes
7answers
12k views

Get terms by taxonomy AND post_type

I have 2 custom post types 'bookmarks' and 'snippets' and a shared taxonomy 'tag'. I can generate a list of all terms in the taxonomy with get_terms(), but I can't figure out how to limit the list to ...
1
vote
1answer
697 views

Some custom taxonomy child terms not showing in admin. Caching problem?

I have a problem with some custom taxonomy terms. I am using "Types" plugin for creating custom post types and custom taxonomies. I successfully created my postype and hierarchical taxonomy and ...
2
votes
2answers
835 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
325 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 ...
-1
votes
0answers
11 views

How to retrieve metadata from a term in custom taxonomy

I'd like to get a meta value of a meta field from terms in a custom taxonomy. I started with retrieving all terms: $customTerms = get_terms('ss_category'); Each term from ss_category has multiple ...
0
votes
0answers
15 views

Using term_group to order custom taxonomy

I have a few CPT's that use custom taxonomies. The idea is to group things on a page by the taxonomy. My problem is I would like to order the groups on the page similar to menu_order in my get_terms() ...
0
votes
1answer
398 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 ...
0
votes
1answer
694 views

Getting taxonomy images to display on single-post with their terms

Having some trouble with taxonomy images plugin. I am on single-post.php and I want to display my post's taxonomy terms & the term's associated images. Ideally, I'd like the taxonomy description ...
0
votes
0answers
21 views

How to pass taxonomy terms to WP_Query along with $args?

I created a cpt and custom taxonomy associated with it. Lets say custom taxonomy name is Sports. I added terms to it - football, basketball. Now, i want to fetch post titles tagged under football ...
1
vote
1answer
15 views

conditional statement based on terms

I was wondering if someone could help me out. I have created a custom query to retrieve in a custom single.php to retrieve posts which have the same custom taxonomy term and display them. here is the ...
0
votes
1answer
689 views

Get post terms with hierarchical relationships

I'm having a hard time getting a set of selected terms in a custom taxonomy presented in a specific way. I have a hierarchical taxonomy 'places' and a post with the tagged terms: England (x) - ...
0
votes
1answer
15 views

Missing term_id value

For some reason the get_term_by function does not return a value for term_id. It will return the name of the term but not a value for term_id. I'm trying to get the term_id of a category basically. ...
0
votes
1answer
34 views

Custom Post Status & Taxonomies

I have successfully registered my custom post types, custom post statuses and my custom taxonomies/terms. All is working fine but... It seems that both the 'categories' column within the custom post ...
1
vote
1answer
387 views

non-hierarchical custom taxonomy using checkboxes on edit-screen -> saving issue

I registered a non-hierarchical custom taxonomy ('property_features'). There is a checkbox for every terms of this tax in a custom meta box on the edit-screen. All terms are displayed and all terms ...
0
votes
2answers
629 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
2answers
1k views

get_term_link not working

I am trying to use the below code snippet to display an image and then wrap it in a link to a specific term archive page. In this case, I have a custom taxonomy (Series) with a few different terms. ...
0
votes
1answer
20 views

Add HTML to Term Description

I'm trying to add ( using wp_editor ) an HTML Term Description without a pluign. Whenever I try and spit out the data I get escaped HTML back: <strong>test</strong> ...
0
votes
0answers
13 views

How to make a category an alias of another category?

The codex page for wp_insert_term states that you can Optionally marks it as an alias of an existing term. But I cannot find anywhere in the admin area where this is reported or can be set. I ...
0
votes
1answer
491 views

Get all attachments by custom taxonomy - term

I want to make custom taxonomy (gallery) and terms (name1, name2, name3...) Add images into media tab and then retrieve all images from same term. Look like simple task, but I cant manage it. I ...
-1
votes
1answer
36 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 ...
0
votes
1answer
19 views

CTP - check for value inside objects

I have registered a CTP which can add a new plant and user can tick which months it can be planted (february, march and april for example). Now, I need to display it on the page but with all months ...
0
votes
1answer
50 views

How to Get Current Custom Post Type Associated Taxonomy Term

I have a single.php file like below <?php get_header(); ?> <?php if ( have_posts() ) { while ( have_posts() ) { the_post(); echo '<div">'; ...
0
votes
1answer
39 views

Match and Merge Terms in Different Taxonomies

I have some author names held in two different taxonomies where the terms are formatted in two different but overlapping ways. There are about 400 terms in each taxonomy, associated with roughly 700 ...
3
votes
1answer
3k views

Order get_terms() By Custom Field

I want to order my categories like I order my pages. I've added an extra field called Order to my taxonomy, but how do I order my terms by this value? Adding and Saving my Order Value: /** Add New ...
1
vote
3answers
244 views

Creating a function that receives the taxonomy terms that have been changed in a custom post type

Ive been looking into actions and hooks etc... from wordpress, but cant seem to do a very simple thing. I just want to execute a function whenever a post is updated, and within the function I want the ...
0
votes
0answers
16 views

How to use one taxonomy for different needs?

I have a taxonomy called "Names" (like tags) where I store people names and for example, I have a custom post type called "Photography" where I want to tag people who appears in each photography and ...
0
votes
1answer
63 views

Get only one product category woocommerce

I have to get and show only one category name from a product. I have almost read everything and tried everything. <?php $term = get_the_terms( $post->ID, 'product_cat' ); foreach ($term as ...
0
votes
1answer
14 views

modify strip_tags function to use term slug instead of term name

I have a small function to get post categories from a custom taxonomy and modify their url, but now I have multi-word categories I need to modify it to use the category slug instead of just the ...
0
votes
1answer
31 views

Get list of CPT posts in *current* post's taxonomy term

I've seen dozens of similar but not quite the same questions - It seems easy enough to do a wp_query and get a listing of posts in a given CPT, and sort by a given taxonomy term. However, what i can't ...
0
votes
1answer
68 views

Custom query - get_the_terms not work

I want to to show my customer works in a slide This is my query to show these works. I want to obtain the term of the taxonomy "idm_real_tax" for each custom type record. $query = new ...
0
votes
2answers
25 views

Custom Taxonomy Terms in Menu lead to which page?

Hello All I was wondering if someone could help me out. I have created a custom post type along with a custom taxonomy. In this custom taxonomy I have created custom terms through the wp dashboard. I ...
0
votes
0answers
18 views

Should update a term, but new one is created instead

I have a piece of code that should update a term in a custom taxonomy, when custom post type's title or slug is updated. However, instead of updating a term, a new one is created. CPT: collection ...
0
votes
1answer
27 views

Find terms in a custom taxonomy based on the hirearchy

I have a hierarchical custom taxonomy were individual term names could be repeated in different level but not in a single hierarchical path. Let me explain this using an example News News > ...
0
votes
1answer
41 views

List subcategory on taxonomy term page

On WooCommerce I am using the archive-product.php template page. I want to show a list of the sub-categorys from the displayed category. So as the user changes category the list of subcaegories will ...
0
votes
1answer
32 views

Term specific featured post on taxonomy archive pages

I am trying to find a way to display a per term featured post on taxonomy archive pages. So say you navigate to url.com/my_taxonomy/my_term it should show the featured post of my_term above the ...
0
votes
1answer
22 views

Hierarchical list of custom taxonomy terms

I have a custom hierarchical taxonomy. I don't know how many nested terms will be in each term. What I want to do, is to list all taxonomy terms hierarchically no matter how deep each term is nested. ...