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

qtranslate-x problem with custom term description

I use qtranslate-x plugin for site translation. Works well, but on my custom term's page I see description in all languages. I use this code to display term information: $term = $wp_query->...
0
votes
1answer
16 views

Resize $term attachment using url

I'm using this plugin for attaching an image to a custom taxonomy. The plugin's function returns the attached term's image as following: function get_wp_term_image($term_id){ return get_option('...
0
votes
2answers
16 views

Displaying the Taxonomy and a Queried Term on a taxonomy.php page?

I'm using a WP plugin Called Search and Filter to filter a custom post type — a user directory. The plugin lets a user filter the directory by specifying terms. It will also let a user filter the ...
0
votes
0answers
20 views

I need help creating a filter for my custom post type with multiple custom taxonomies and terms using isotope!

I have a custom post type called 'recipes' and 4 custom taxonomies called 'main_ingredient', 'courses', 'dietary_requirements' and 'cuisine'. I'm using Isotope to create the masonry style grid and ...
0
votes
1answer
12 views

Wordpress query with items from more than one selfdefined taxonomy as `term` argument

So I'm working with a bought version of a plugin (WP Catalogue, sorry I can't post more links than 2) as basis for my code for a website i'm working on and i'm adjusting it so that it can be used for ...
0
votes
0answers
20 views

Issue with retrieving taxonomy slug

I am trying to integrate two plugins on wordpress and am extremely frustrated and hope somebody can point out what I am doing incorrectly. I am trying to integrate the mycred plugin which gives users ...
0
votes
1answer
25 views

Display x number of terms and exclude hidden

I use the following code to exclude terms with hidden products. I want to display only 5 terms but when I add the parameter number it also take account of hidden terms so I get fewer terms depended on ...
0
votes
0answers
21 views

Product dimensions filter by taxonomy

Introduction I am working on my own product filter based on a taxonomy called shop-filter. This taxonomy is meant to create filters like: "width" and "height", but also "dooropener" and "hinge type" ...
3
votes
0answers
43 views

How to find objects by terms

I am struggling with a search filtering. Firstly, my script is searching for users using natural search SQL. The query returns ids of users. Now I would like to filter them by terms which are assigned ...
-1
votes
0answers
24 views

What is the one-query (or the fastest) way to get posts and their terms (more taxonomies)?

Now this might seem like a similar question One query to get posts and their taxonomy terms but it is just similar and does not have proper answer. Goal: I need to get limited number of posts and ...
0
votes
1answer
32 views

How can I pull the slug of a custom taxonomy and output it in a class?

This is the file I'm working with: <?php $class =''; foreach ($consoles as $console) { $class .= $console->slug . ' '; } ?> <div id="<?php the_id(); ?>" class="<?php echo $...
0
votes
0answers
14 views

Realtime filtering of posts in blog view

I'm looking for a way to filter the list of posts by a search term. For example: There are 20 postings on the blog in total. In a search field you can enter a term and without loading a new page you ...
0
votes
0answers
19 views

Order posts by term in alphabetical order

I know it's possible to order by terms, but having migrated a huge amount of data from a different CMS, I'm left with a list of brands that are taxonomy terms. I'm using ACF to present the terms as a ...
2
votes
1answer
30 views

Is there a filter hook that I can use to change how taxonomy term names are displayed?

I need to hide a custom taxonomy's terms' names on the frontend while preserving them on the backend. Instead of the terms' names I need to display pseudonyms. I can't find a single filter hook to do ...
0
votes
1answer
33 views

Adding predefined terms to a taxonomy

I'm writing a plugin for adding a Custom Post called"Dog". The core of the plugin is strictly based on this one https://github.com/RescueThemes/Rescue-Animal-Custom-Posts I prefer to add predefined ...
3
votes
1answer
51 views

Order terms inside a select dropdown

I'm working on a project where I've a dropdown of all the terms inside a taxonomy. If the user selects a term, then a function is executed. Eveything is working great, but I can't get that dropdown ...
0
votes
0answers
57 views

Proper way of listing posts from custom archive with sub-categories

I am trying to create a register of things, using custom post type, named register, and custom taxonomy named register_cat. It will have categories and sub categories, something like this: Cat A ...
0
votes
1answer
61 views

Group posts that matches a term in a loop

I'm working on a website that shows a lot of products, and this is my structure: Product (custom post type) -->Brand (custom taxonomy) ------>Brand A (custom term) ------>Brand B (custom term) -->...
-2
votes
1answer
74 views

Get posts that matches specific terms of multiple custom taxonomies

I'm working on a page that show a lot of products. My structure is Product (custom post type) -->Brand (custom taxonomy) ------>Brand A (custom term) ------>Brand B (custom term) -->Department (...
0
votes
1answer
62 views

Get posts of an specific term of a custom taxonomy

I'm new at Wordpress development and I was wondering (and trying to solve this) for a long time, so maybe you can help me. My WP use a custom post type named Products. And there is a custom taxonomy ...
1
vote
1answer
38 views

Return Taxonomy/Term Information with Posts (WP_Query/get_posts)

Is it possible to return taxonomy/term information for posts along with the posts themselves when querying with get_posts? I have around 150 items I am querying so I don't want to loop and pull each ...
1
vote
1answer
41 views

How to get post's current parent term ID?

How do you get the ID of the parent term of the current child term assigned to a post. For a custom taxonomy? Custom taxonomy: "location" Countries Japan USA Mexico Cities New York Austin ...
2
votes
0answers
22 views

get / list categories and counts filtered by custom taxonomy term

In my post 'post type' besides "categories" I've a custom taxonomy called "product-types". The category is actually more "manufactures" of the product types. I've a product-types page where I list ...
1
vote
1answer
34 views

Insert term when page is published - avoid duplicates after edits

So i want to dynamically add terms to a custom taxonomy named after new pages when these are published. Problem I have is that when you edit the page titles, another term will be added to the taxonomy....
0
votes
2answers
60 views

List all categories but exclude current post category on single post page

I want to display a list of categories excluding the category of the current single post that the user is navigating on. The list is displayed on the single.php template. I'm using this code to ...
5
votes
2answers
62 views

WordPress 4.4+ breaks Walker Extension

I upgraded WordPress to 4.5.1 from 4.2.2 and it has broken the functionality I have extending the Walker class. The Walker extension: class ReturnWalker extends Walker{ public $db_fields = array( '...
2
votes
0answers
67 views

Can we have same term slug in different taxonomies?

I am having problem when creating term with same slug in different taxonomies. I researched that Unique key is removed from slug in wp_terms table, so i am getting problem to figure out that why i am ...
0
votes
1answer
29 views

Display list of terms having the same custom field value

I have a custom field for my taxonomy called 'food_type'. How can I display a list of my terms where this custom field's value is set to "Cat food"?
-1
votes
1answer
37 views

Get all terms assigned to a post from different taxonomies

There are different taxonomies. I have assigned different tags from these taxonomies to different posts. Can anyone help me to get all the terms which are assigned to a post. (Different terms from ...
0
votes
0answers
24 views

Terms showing empty inside a loop

I have the following problem: I have 2 taxonomies that belongs to a custom post type What i want to do: Loop = taxonomy 1 loop = taxonomy 2 loop = post type My code works but, it shows ...
1
vote
1answer
46 views

how to filter each tag item?

By default wordpress displays tags as: Tagged in: Tag1, Tag2, Tag3, ...so on I want to print it as Tagged in: #Tag1, #Tag2, #Tag3, ...so on I know I can do this using CSS by using :before, but I ...
0
votes
1answer
20 views

Wrap custom terms loop

I have a custom terms loop, that gets category images and links. <?php foreach (get_terms( 'razotajs', 'orderby=count&order=DESC&hide_empty=0&parent=0' ) as $cat) : ?> <a ...
0
votes
0answers
18 views

I want to add tag id to search query in wordpress

I have a custom search form which get result like this http://localhost/car/?post_type=cars&vehical=sports-car&manufacturer=truck&country=australia&state=new-yourk By using this ...
0
votes
1answer
26 views

Can I limit term selection to one plus parent?

So i have a custom post type (listings) and a custom taxonomy (listing_terms). The taxonomy has parent/child terms. Eg: Restaurant -> Cafe (where Cafe is the child of Restaurant). I want to only let ...
0
votes
0answers
55 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
1answer
34 views

Wordpress add taxonomies/terms list as a menu in archive page

I create a custom post type (deals), terms (project), menu (top_menu) and archive page (archive-deals.php) on my theme. I want to display terms post list in archive page. But when I click terms menu ...
1
vote
1answer
79 views

Wordpress have_posts() return false but count says “3”

The situation is this: I have created a custom post type which works perfectly, now I want to create a specific archive page template for the taxonomies of this post type. I duplicated the archive....
0
votes
0answers
32 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
1answer
24 views

Temporarily un-associate term for an amount of time

I'm looking for the best way to remove a custom post type post object association from a term for "a designated amount of time" and then when that time expires the association continues. It also ...
1
vote
2answers
111 views

Is it possible to get a Previous/Next Taxonomy term archive URL?

I have a custom post type called shows and taxonomy called podcast. Using taxonomy-podcast.php, I having hard time finding a function that will generate next/previous Term URL Archive. For Example: ...
0
votes
2answers
85 views

get_term_by “name” not working with & in name

I want to get category id by name so I am using get_term_by This is working fine when name is simple but when '&' is coming in term name it is not fetching category id. e.g I have a term named "...
0
votes
1answer
55 views

Correct use of get_the_terms()

I need to print all terms associated to a custom post type post. In the post template I wrote that code: <?php foreach (get_the_terms(the_ID(), 'taxonomy') as $cat) : ?> <?php echo $cat-...
0
votes
1answer
73 views

Failure to add term meta

I'm working on a modification to a custom taxonomy that would allow content managers to specify a numeric order in which the terms shall appear in a widget. They can't rely on the alphabetical order ...
0
votes
2answers
48 views

Dynamically tax_query terms

To display all the categories name with checkbox from custom taxonomy called ct_category I have the following code: $terms = get_terms('ct_category'); foreach ( $terms as $term ) { echo '<li ...
1
vote
1answer
37 views

Allow only 1 instance of each term in each custom taxonomy

I'm looking for a function that restricts the creation of each term to only 1 instance within each custom taxonomy. Each custom taxonomy may have the same term but the term may only occur once in each ...
0
votes
1answer
59 views

save custom term - hook create_term doesn't work

i'm trying to save a custom term with my own informations. i tried the hooks: - create_term - created_term - create_{my_taxonomy} but nothing seems to work. when I save the term, it's only getting ...
1
vote
1answer
42 views

How to remove/hide the predictive autocomplete popup when I type in the tag/term metabox

When I start to type in a few letters in the tag or term metabox (in the post edit page) there is a predictive autocomplete popup thingy containing other tags/terms to choose from. How do I disable/...
0
votes
0answers
26 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
1answer
121 views

Sorting get_terms, ACF is automatically removing duplicates

I read over the ACF & WordPress documentation and both do not mention why/when/how duplicate values are removed from an array when sorting taxonomy terms by custom fields. I learned that ACF does ...
0
votes
0answers
25 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 ...