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
0answers
87 views

Action hooks returning old category instead of new category

With some help I created a WP Action to send an email to the author of a post (custom post type) when the category has been changed. This works ok, except that the function is returning the previous ...
2
votes
0answers
292 views

How to display term description in empty terms archive?

I list all terms from a taxonomy, even the empty ones, but I found out that at least in 2010/2011 themes I got a 404-like message, the default seems to only display the term description when at least ...
1
vote
0answers
27 views

Custom while loop for hierarchical display of a taxonomy

I'm trying to build an automated mega menu that loops through all product-category terms and displays them in a hierarchical underscored list, as well as including post in each term. For example, ...
1
vote
0answers
19 views

Lists custom taxonomy terms that has specific custom field value assigned to the term (not post)

As title reads, I am trying to list specific custom tax's terms in a custom post type archive's page. My setup: Custom post type: 'podcast' Custom Taxonomy: 'showname' -> Custom Field for above ...
1
vote
0answers
38 views

Display Posts Loop for each parent and for each Child

i have a custom query to display relation with posts (post 2 post plugin) my existing code display : foreach terms as terms i need to display for each Parents Display Child then Posts Titles ...
1
vote
0answers
43 views

Insert term and child term from frontend

I have this taxonomy: "free", and I want to insert new term (ex: Season) and then insert a child to this term (ex: episode) in the same form. Taxonomy "free" Add new term: ex: Season, and then add ex: ...
1
vote
0answers
24 views

Show child terms of current term of the taxonomy

I have some taxonomies (such as product, articles &...) and any taxonomy has some terms (Eg for product: mobile, book & ...), and any terms has some child terms (Eg for mobile: iPhone, ...
1
vote
0answers
22 views

Convert non-hierarchical taxonomy to hierarchical after registration

I have a custom taxonomy that was created by WooCommerce (product_tag). I'd like the taxonomy to be hierarchical so it behaves like categories instead of tags. I need to do it after the taxonomy ...
1
vote
0answers
193 views

Display taxonomy terms, child terms and posts in a template

In a site that I am building I am trying to create a template which will display all my "product" custom post types along with their parent and child taxonomies in some hierarchical structure which is ...
1
vote
0answers
24 views

Show List of Terms (not posts) that have been Recently Updated?

Is it possible to prepare a list of terms that have been recently updated? For example: I have custom fields attached to my terms and I would like to show a list of terms that have been updated say ...
1
vote
0answers
99 views

Create Search Form to Filter Through Terms

I have pages that displays a list / grid view of all my taxonomy terms. Over 200 terms. The page is paginated since there are so many terms, however, I would also like to include a "search" box at the ...
1
vote
0answers
872 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 ...
1
vote
0answers
14 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
103 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 ...
1
vote
0answers
33 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 ...
1
vote
0answers
254 views

Add term to custom post type on draft

I'm trying to automatically add a custom taxonomy term to custom post type when the custom post type of property is created. The action is firing but it is not adding the term. I know it is firing ...
1
vote
0answers
275 views

Same term from custom taxonomy in two different custom post types?

I use a front end form to insert custom post types, an input is used for inserting terms (keywords) to a custom taxonomy for this custom post type. I just noticed in the back-end when I view the ...
1
vote
0answers
615 views

Get posts under a category with SQL

How can I retrieve posts under a category with plain SQL with out using WordPress native api's like get_pages? My Wordpress table wp_terms contains a term named Restaurants. I want to list the post ...
1
vote
0answers
71 views

Ordering taxonomies by rank

I'm using a function (copied and modified a bit from this question ) which displays taxonomies in order by rank with ยป between parent and child and | between terms, but I get a mistake in the html ...
1
vote
0answers
199 views

get_terms not returning any custom taxonomies

I have a custom post type called project with custom taxonomy called tagportfolio I use this code to generate both: add_action('init', 'project_custom_init'); /*-- Custom Post Init Begin --*/ ...
1
vote
0answers
142 views

sql select for post_title and a term name

I'm having trouble trying to think out this SQL select I need to write; here's the gist: I'm programmatically creating posts by importing an excel file, so I'm in 100% sure of post titles, etc, since ...
1
vote
0answers
206 views

Listing all term items alphabetically / sorting loop

I have my own custom post type and it has its own taxonomy and terms. Whenever user visits http://example.com/mytaxonomy/myterm I want the page to display all items within this term alphabetically. ...
1
vote
0answers
363 views

List Posts For Terms Of A Custom Taxonomy For Any Post Type

The function is great and i am using this function with these filter to just display selected taxonomy term posts by id, but what result i am getting is like this Child Taxonomy 1 - Child Taxonomy 1 ...
1
vote
0answers
355 views

Exclude posts with taxonomy term from appearing on home page query

I am really confused about this one, I am usually pretty good at working out basic queries but I can't seem to work this one out. Please see below my index.php query. Now it is not your basic query ...
0
votes
0answers
25 views

Display titles only when the term has posts

I have a CPT of magazines (journal), with 2 custom taxonomies, I want to list the taxonomy Terms to show the titles of the terms and the posts of the taxonomy under it in the taxonomy template, this ...
0
votes
0answers
27 views

Custom Taxonomy/Terms Url Structure

I am creating some taxonomies dynamically from using an ACF Options page, this seems to be working but the URL structure is off. I was expecting, something like... mysite.com/myPostType/Taxonomy/Term ...
0
votes
0answers
25 views

Cloning terms for an attribute

I am trying to duplicate terms for a product attribute. I was able to set up a "Clone" link from my previous question. I can successfully clone the attribute, but I am having trouble assigning ...
0
votes
0answers
51 views

Woocommerce only show attributes for specific category

I can't work out how to do this. I want to list the pa_country attribute terms for a 'wine' category in the sidebar. I can list all the 'pa_country' attribute terms for all categories, but that is ...
0
votes
0answers
21 views

Create and Update Terms (parent and child) after save post or meta_values

I'm working to create a site for estate agencies using WordPress. For some reasons, when the post is updated, I need to create and/or update terms for the taxonomy "location" that is used by custom ...
0
votes
0answers
19 views

Taxonomy Term Meta not importing

I have created a Taxonomy for Custom Post Type and its working fine while saving, updating, editing etc. But its not working while importing xml the sample data. Here is the Code function ...
0
votes
0answers
24 views

Increase category/term description lenght

I'm developing a site, where the best place to store information is category description or is better to say custom taxonomy term description. Good to store, good in use, but there are few terms which ...
0
votes
0answers
16 views

Widget form is not saving value that retrieved based on taxonomy terms

Custom Post Type: employee Taxonomy: department Here is the code:for widget form function form( $instance ) { // Output admin widget options form if ( post_type_exists( 'employee' ) ...
0
votes
0answers
15 views

Decrement term in for each

So I am catching custom posts in wordpress by for eaching my custom terms. To get a post from the next term in the loop I use $terms[++$key]->name and it all works fine. However when I want to do the ...
0
votes
0answers
31 views

Get template part using a custom taxonomy term

I've been using the following code to get a template part based on the parent term. It was working fine until I updated WordPress to v4.4 earlier today. Since updating if there is also a child term ...
0
votes
0answers
82 views

Get term link of shared taxonomy between multiple post types

Let's say that we have three custom post types: museum, theater and restaurant that share the same hierarchical taxonomy: location Up till now I have 3 different urls for each of cpt archive pages: ...
0
votes
0answers
36 views

how to add custom taxonomy terms to main rss feed?

I'm wondering how to add custom taxonomies and their terms to the main RSS feed in WP 4.4. I've tried: function myfeed_request($qv) { if (isset($qv['feed'])) $qv['taxonomy'] = array( ...
0
votes
0answers
56 views

How can I allow users to set term_order for custom taxonomy in admin?

I am able to sort a list of (custom) taxonomy terms on the front-end calling get_the_terms() with the help of the following filter function: /** * Sort custom taxonomy by term_order * * @param ...
0
votes
0answers
17 views

Getting Post Tags From Certain Categories

The site I am working on has about 4 different post categories. I need to output a list (unordered) of tags in that category so that a user can click on them and see posts in THAT category tagged with ...
0
votes
0answers
23 views

Assigning a post (custom post type) to parent term and children

I'm writing a script to import store listings into WordPress. The taxonomy structure consists of: State (Parent) > Region (Child) > Sub-Region (Child of region) > City (Child of ...
0
votes
0answers
68 views

404 on term taxonomy archive pagination only with some terms

On my site I've created a CPT with a hierarchical custom taxonomy. Here the code: **CPT Args** $args = [ 'labels' => $labels, 'public' => true, ...
0
votes
0answers
132 views

How to get posts ORDERBY a custom taxonomy term's custom field?

I have a custom taxonomy program_taxonomy : /* register a common taxonomy for DRAMAS & reality_shows to get post by terms in PROGRAMS page */ register_taxonomy( 'program_taxonomy', array ...
0
votes
0answers
96 views

Best way to group posts based on custom post type terms

I have been trying to group custom posts based on the taxonomy terms as shown in this article. Here is another similar post: Display all posts in a custom post type, grouped by a custom taxonomy ...
0
votes
0answers
32 views

How to display custom taxonomy grandest children in three columns, with first child as column heading?

I have a taxonomy structure thats 4 levels deep, with the name 'services_tax': Parent - Child - - Grandchild - - Grandchild - - - GrandGrandchild I am trying to get the terms selected on a custom ...
0
votes
0answers
11 views

What is the earliest hook you can piggyback on to check terms/taxonomy for a collection view?

I am attempting to set up some conditional logic based on whether or not get_the_terms( $post->ID, 'product_cat' ) has the term 'Photographs' in it. Currently I'm using the wp hook, but that ...
0
votes
0answers
27 views

Can I use a second taxonomy when creating a post?

I have created second taxonomy, and can use it when creating a new post. However, on the front-end of my theme, using the wp_terms_checklist function, how do I create a post using 2 taxonomies? My ...
0
votes
0answers
15 views

Get name of child custom taxonomy

I had a list of custom taxonomy: Products > Spanish products > single hair > the product A How can I get the name of Spanish products custom taxonomy?
0
votes
0answers
73 views

Custom Post Type: Display specific taxonomy term on archive page

I've a custom post type called 'Products' and a custom taxonomy for it called 'Products_Categories'. Now I'd like to have my archive page to look like Books: Title book 1 Exerpt book 1 Link to ...
0
votes
0answers
37 views

URL rewriting taxonomy term

I'm trying to find solution for the following hours now and i don't know if this is applicable. I have 1 Custom Taxonomy "Years" for Post Type "Post (default)". The taxonomy has 2 Terms: "2014" and ...
0
votes
0answers
42 views

How to display terms from two taxonomies in one php code?

Two taxonomies were added to posts : volume : in which admin enter the number of the journal volume for each post issue : where admin enter the number of the issue under which the post is published ...
0
votes
0answers
84 views

How to get the last term from taxonomy?

working on a scholar journal in which publisher add issues to the "issue" taxonomy assigned with articles. i need to display outside the loop a list of posts assigned only with the last issue ...