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

2
votes
1answer
25 views

Show posts without term

I am working on a product page where I show reviews from my post type 'reviews', if the product page title matches with my term from the taxonomy 'review-product'. Example. Product page title: ...
4
votes
2answers
206 views

Passing a hardcoded page/post ID into `get_post`

I see people using this to pull in page content on their home pages, remove specific categories from archives etc.. e.g. $post = get_post( 5 ); Someone suggested this was bad practice. Why is it ...
0
votes
3answers
33 views

ACF: Filter Terms by Custom Field? [on hold]

I'm using the Advanced Custom Fields plug-in. I have a a custom 'select' field applied to a taxonomy within a custom post type. I would like to "query" - based on a custom field value of 'Active' or ...
0
votes
1answer
12 views

How to retrieve the permalink for a specific (custom) term?

I would like to display the list of categories related to particular post? <?php while ( $faktory_panes_query->have_posts() ) : $faktory_panes_query->the_post(); $post_id = ...
-1
votes
0answers
17 views

Woocommerce 2nd terms&condition page [closed]

I need to use a second page like terms&conditions page on the payment page. It is a 2 step configuration, first we will add 2nd terms page to payment page 2nd the added page will have dynamic ...
2
votes
1answer
34 views

Does WordPress Offer a Way to Find All of the Categories that Don't Have Children?

Background As discussed in Is There a Difference Between Taxonomies and Categories, taxonomies refer to a generalized system of classification and organization of objects or data. In the case of ...
0
votes
0answers
22 views

Paginate Term Archive? [duplicate]

I have a custom template displaying an "archive" of terms. When a term is clicked it takes the user to a list of all the posts assigned that term. I am not using a traditional loop to achieve my term ...
2
votes
0answers
25 views

Adding a term name from a custom taxonomy assigned to a post link displayed by a wp_query loop based on another taxonomy

I have registered a custom post type "Animals" and also two custom taxonomies ("Vertebrate" and "Type") assigned to it, which have their own specific terms, for "Vertebrate" it will be "Mammals" and ...
1
vote
3answers
40 views

Exclude Taxonomy Terms from Template Via Back End?

I'm wondering if you can help me work through an issue or provide alt ideas. I have an archive displaying a list of custom tax terms in a grid view. My client needs to be able to turn on/off the ...
5
votes
2answers
411 views

Is There a Difference Between Taxonomies and Categories?

I've been reading the codex for WordPress closely and am confused about the vague definitions between what a Taxonomy is and what a Category is. For that matter, term is also a word that is used in ...
1
vote
1answer
14 views

display taxonomy slug from term ID

I'm trying to display the taxonomy slug from the term ID, thus my current code is like so: <?php $catinfo = get_category(array_pop(get_sub_field('sector_selector'))); ?> <?php print ...
1
vote
0answers
54 views

Use custom walker to add taxonomy terms to main nav menu

I created a Custom Post Type: Product and a Taxonomy assigned to it: Products So under that Taxonomy I can add different types of products (terms if i'm not mistaken). When adding new products I get ...
0
votes
1answer
25 views

Permalink Rewrite to include Custom Taxonomy Term

I've created a custom taxonomy for posts using register_taxonomy( 'discipline', array('post'), /* if you change the name of register_post_type( 'custom_type', then you have to change this ...
0
votes
1answer
24 views

How to add custom taxonomy terms to posts in bulk

I have a taxonomy called Teams. Now I want to assign different teams to posts based on their tags. For example, all posts with tag "LA Lakers" should be assigned the taxonomy term "LA Lakers"
0
votes
1answer
33 views

How to stop the deduction in “wp_term_taxonomy” count, when the post is deleted?

In wordpress, the normal behavior is, when you delete a post, the system automatically performs a deduction of a post (-1) in wp_term_taxonomy table in count field from a taxonomy row which it belongs ...
0
votes
0answers
19 views

Sort WP Taxonomies

Is there a way to sort a custom taxonomy term list in order of recent updates to posts inside that taxonomy? Example: Custom Post Type: Research Custom Taxonomy: University Research Custom Tax ...
0
votes
2answers
20 views

Display what taxonomies a custom post has?

I've trying to search high and low for this but am having a really hard time. Essentially, I have a custom post type called locations with taxonomies. The posts in "locations" are categorized under ...
0
votes
1answer
65 views

Exclude Custom Post Type from shared Custom Taxonomy

I have a few custom post types and two of them are sharing a custom taxonomy. Is there a way to list the terms of that taxonomy for only one of the custom post types? At the moment I can get a list ...
0
votes
2answers
29 views

Get multiple term objects by ids

I have an array of ids that correspond to terms. How do I get the full term objects for each id? $ids = array(1,2,3); Ideally, I would love to be able to do something similar to the way taxonomy ...
0
votes
1answer
24 views

get_adjacent_post_link excluded_terms ignored

I call the function ´get_adjacent_post_link´ using the argument ´$excluded_terms´. But this argument is ignored. This is how I call the function. get_adjacent_post_link( '%link', '<span ...
0
votes
1answer
30 views

Grab all Custom Posts by multiple taxonomies and terms

I have 4 custom taxonomies with multiple terms for a "Members" page. I have a taxonomy of "location" and "organize" that I'm trying to separate into a list. I need to grab all posts by the ...
1
vote
1answer
49 views

Check if a post is in any child category of a parent category

In a site I'm developing, I have the following category structure: * movies (parent) * thriller (child) * comedy (child) * drama (child) The current post is in the comedy category. The ...
0
votes
1answer
30 views

Trying to Display Number of Posts in Term

I am trying to display the number of posts within each of my custom taxonomy terms. I just need to show if there's 2, 3 10, etc # of posts within my terms. This is my code. Looking for a way to ...
0
votes
3answers
45 views

Targeting custom post type

I have the following loop working as I want it but I need the 'activists' list item to include <?php the_post_thumbnail(); ?>. What would be the best way to write this? <?php ...
0
votes
2answers
50 views

Taxonomy Grid Archive Help?

I need some help. I would like to make a custom taxonomy archive that shows a grid of the terms(categories) in the taxonomy. I know how to accomplish the grid portion, but I'm having trouble with the ...
0
votes
0answers
6 views

Order Terms by Custom Field

I have a custom post type that I am trying to order by terms. Each term has a custom field "order" associated with a number. I am trying to order the posts by term, in numerical order based on the ...
0
votes
0answers
15 views

Display Child Term if it exists

I have a page that lists all the members of my band. The members are categorized into 'sections'. There are a few child sections, and I'd like to display the child section (if it exists) for each ...
0
votes
1answer
15 views

Can I generate then display a mixed list of linked and unlinked terms

Does anyone know a straightforward way to display a mixed list of linked and unlinked (custom) terms, dependent on whether there is more than one instance of a term being used? i.e. I have an item ...
0
votes
1answer
23 views

Separator for multiple terms

I'm trying to show terms of custom taxonomies. I have that. But, my problem is how to separate when I have multiple terms. My code: <ul class="slides"> <?php $loop = new WP_Query( array( ...
2
votes
1answer
78 views

Get list of terms of current taxonomy archive for another taxonomy

I have a Custom Post Type named 'Real estate' which has (amongst others) two different taxonomies: 'Purpose' (hierarchical; terms used are 'Living', 'Working' and 'Holidays') and 'Location' ...
0
votes
1answer
52 views

Limit Words in Category / Term Description - Admin Panel

I'm working with a Taxonomy where the Terms have lengthy descriptions. It makes the Admin Panel look really ugly when WordPress tries to display these descriptions for 10 categories. I'm trying to ...
3
votes
2answers
105 views

I have a term_taxonomy_id — is there an API call to get the taxonomy?

Issue: I have the term_taxonomy_id, I do not have the taxonomy name, I want to retrieve the term object without doing a direct database query. Thoughts: Well the API docs for get_term_by say that ...
0
votes
1answer
38 views

Hierarchical Taxonomy Terms Select Menu Output with selected=“selected” Set

I have been trying to wrap my head around a issue for the past 2 days but despite trying all I could, I can't seem to reach the solution. On the backend, I have a hierarchical taxonomy named ...
0
votes
1answer
54 views

Retrieve a specific field from taxonomy term through advanced custom fields [closed]

I've set up a custom field which appears in a taxonomy terms page. I am trying pull an image associated with the custom taxonomy term directly However the page in which it is being displayed is a ...
0
votes
0answers
29 views

How to get list of posts with specific tag in separate category

I have a custom search function in my functions.php. And I need to change it, so that it will search also by tags in a specific post category (with ID 6 for example). For example someone search ...
0
votes
0answers
43 views

Remove Custom Taxonomy Slug only without removing Custom post type slug in permalinks

I have a problem currently that is related to permalinks. I have a custom Post type "workshop" and two taxonomies named "manufacturer" and "models". What i want to get and tried is this URL pattern. ...
-1
votes
1answer
14 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');
0
votes
2answers
33 views

Wp_query…a type of term a different div

I need to create a table like this image and I want a specific term in particular DIV but with my code appear all together. Example: One div brown with the 5 products. The effect I want is like an ...
0
votes
1answer
34 views

Retrieve posts by term id custom query

i want to retrieve custom posts using using custom query . my taxonomy is recipe_tx and terms (Beef) , (Chicken) etc in it . i have tried using SELECT p.* FROM wp_posts p, wp_term_taxonomy tt, ...
0
votes
0answers
48 views

How to filter the terms to a special custom taxonomy?

I do have a custom taxonomy called "countries". With the code below I get for each term (country) the number of its published posts in brackets, like the following: Canada (3) USA (5) Italy (2) ...
0
votes
2answers
12 views

How do I prevent term from being created on create_term hook?

I have a function working on 'create_term' hook, I'm trying to prevent the term from being created on certain situations, I've tried return false; But that didn't do much, how do I prevent the ...
0
votes
0answers
30 views

get_term_link not showing

I've built a widget that shows a listing of products by category in WooCommerce. I can't seem to get the widget title to link to the product cat page. The title of the category shows up fine but I ...
0
votes
0answers
19 views

2 Different Taxonomy with Hierarchical Term Relationship

I'm searching a way to combine two different taxonomy by it's term. Here is a picture of what I'm trying to achieve I will used this later in a drop down select box with Ajax, if it choose Make ...
0
votes
0answers
19 views

Loop through posts and get the list of all terms for a taxonomy [duplicate]

I'm within taxonomies (a) archive and I want to loop through all the posts and retrieve a list of terms for taxonomy (b) then echo that list out with no duplicates. Here's what I have so far in my ...
0
votes
0answers
68 views

Assign Taxonomy Term from Post on media upload?

First off let's begin at the code: add_filter('upload_dir', 'set_destination_folder', 999); function set_destination_folder ( $upload_data ) { if ( ! isset( $_REQUEST['post_id']) ) return ...
0
votes
1answer
24 views

Are term IDs unique even between multiple custom taxonomies

I can't find the answer for this question on either Wordpress or here, nor via Google searches, so I'm throwing this out to the community. If you have two taxonomies, and you add 1 term to each ...
0
votes
0answers
27 views

Sanitize Term Custom Field - apostrophe problem

Alright guys, before posting I've searched the similar questions but I couldn't find the answer. Problem: I've added custom fields to a custom taxonomy, when I'm saving the options using ...
0
votes
0answers
36 views

How to display proper parent child heirarchy with custom taxonomy in front end

Right now I have a front end form that lists 4 separate taxonomies in checkbox inputs that a user selects. I can list all of the terms one after the other but I can't figure out out to list them with ...
0
votes
1answer
25 views

How are terms connected with posts in database?

In a multi-site environment, I have a special need to get post terms (on a custom taxonomy) without the expensive operation of "switching blogs". I thought I might write my own query to get terms ...
0
votes
0answers
79 views

How to display list of taxonomy terms of all posts in taxonomy archive?

I have 3 separate taxonomies, all with their own terms. When a term is clicked and the user is taken to that archive, I want to display a list of all the taxonomy terms associated with all the posts ...