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

When creating new terms I get PHP Notice: has_cap was called with an argument that is deprecated

I have created a taxonomy that acts like category. Then I used this code to add image to very term. All works great but I faced 2 problems. How can I remove image from term after I have selected ...
0
votes
0answers
32 views

Get all the contents of taxonomy and sort by term

I'm doing this in a page template. So far, I can query all the contents under my taxonomy. But I need to sort them in terms of their term. Any idea on how to do this? Providing an example would be ...
0
votes
0answers
15 views

How do I display the contents of each custom taxonomy term and segregate them?

I currently have a page which display all the terms and their contents. <?php?> $audio = get_posts( array ( 'paged' => get_query_var('paged'), 'post_type' ...
0
votes
2answers
102 views

How to limit the number of terms (terms acts like categories)

Hello i have created taxonomy in custom post type that act like category. then i have created terms that acts like categories. i have create widget that show all terms from taxonomy. all works ...
0
votes
1answer
141 views

Make Terms Under Custom Taxonomy Use Specific Single.php Template

Yesterday some wonderful people helped me solve the issue here about templates for custom taxonomy terms. Now I have a related question. Again, I have a custom post type set up in my functions.php ...
0
votes
1answer
71 views

How to take list of words and insert them as terms to become tags of a post

I am working on a plugin that will take words with a certain number of characters from a post title and create a list of suggested tags in my Tag Suggester meta box. I have created the function to ...
0
votes
1answer
60 views

How to get all the terms of a post

Here is my code so far: $terms = wp_get_post_terms($event->ID, 'speakers', array("fields" => "all")); print_r($terms); It displays this: Array ( [0] => stdClass Object ( ...
2
votes
1answer
211 views

How to prevent new terms being added to a custom taxonomy?

I've created some custom taxonomies using register_taxonomy, but I want to prevent new terms from being added. I noticed that there is a 'capabilities' argument available in register_taxonomy, is that ...
0
votes
2answers
216 views

How To Display Selected Terms For Custom Taxonomy?

This may be a syntax problem but if so I can't see the problem. I want to select specific terms of a custom taxonomy and display their names. I'm having a problem with the selection process in the ...
0
votes
1answer
96 views

Is altering a default WordPress database table update safe?

I want to add some table columns to the wp_terms table. Is it safe to use the dbDelta function with a modified CREATE-MySQL query for this? Or will I run into problems in the long turn? Is it update ...
0
votes
1answer
220 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 ...
0
votes
2answers
123 views

Get terms within a custom taxonomy

I need to get an array of all terms within a custom taxonomy where they have a parent term from another custom taxonomy. The example would be I have a custom taxonomy "School" where each term (in this ...
0
votes
2answers
38 views

WordPress Term for Custom List

Would you mind helping me out. I am experienced in programming yet really new to wordpress. I was task to handle this. I just need to know what are these called (The ones with the pin icon): Image is ...
0
votes
1answer
309 views

Display post taxonomies tree

I was able to get all the items of a custom taxonomy for a post, like this: $args=array('orderby'=>'parent',"fields" => "all"); $term_list = wp_get_post_terms($post->ID, 'tvr_amenity', ...
0
votes
1answer
91 views

Insert term description programmatically into hierarchical custom taxonomy

I have following code and I want to specify a term description for each actor and director in $tmdb_actors_arr and $tmdb_directors_arr: // build array $my_post = array( 'post_title' => ...
0
votes
0answers
187 views

Adding a query var to taxonomy term archive - gets redirected to the other taxonomy archive page

I want to pass another query var in the URL through a form while I'm on a taxonomy archive page. The URL would look like so ...
1
vote
0answers
168 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 ...
0
votes
1answer
111 views

Custom terms inserting as single string with commas, not separated

I have a front end form, one of the inputs asks for a comma separated list of keywords which should each end up being a custom term, I just saw in the backend the terms are entered as single string ...
0
votes
0answers
92 views

Set terms programmatically

I would like to use wp_set_post_terms() or wp_set_object_terms(). I think I read all the codex and all forum post about these functions and I still can't make them work. I've a taxonomy named store ...
1
vote
2answers
943 views

Get posts of ONE taxonomy term of custom post type

I am going crazy here as I assume it is quite simple, but I just cannot get it to work. I have a custom post type called 'portfolio' and a taxonomy called "locations'. In the taxonomy I have various ...
0
votes
1answer
275 views

get multiple values from $_GET from multiple checkboxes

I'm creating a form that loops through all the terms of a taxonomy. Multiple terms can be selected and they get passed in the url. I'm trying to get all the terms on another page but I'm only able to ...
0
votes
1answer
32 views

Find And Add Category to Posts

My WordPress site is a mess. Previously, it had 80+ categories, with 1-2 sub-categories. After creating blueprint for this site (I'm restructuring the site completely), I have new 6 categories and ...
1
vote
1answer
600 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
53 views

Display Taxonomy Terms in an option tag with value being the slug

I have a custom taxonomy filled with terms that I wish to display in a fashion such as below. <option value="[SLUG]">[TERM]</option> <option value="[SLUG]">[TERM]</option> ...
0
votes
0answers
21 views

displaying links if term is used

I want to display a list of terms for navigation and am using: <nav class="pagenav group"> <ul> <?php $terma = term_exists('group_a_teams', ...
0
votes
1answer
85 views

taxonomy terms array not working

I'm working on a solution to filter a custom post type by multiple terms in multiple taxonomies. Here is my code: <?php $term = "peoria,adams"; ?> <div id="primary" ...
1
vote
1answer
1k views

using $wpdb to get custom post type with term

I'm trying to get the title of the first custom post type with a specific term in a taxonomy. But I'm not great at SQL so therefor not great with using $wpdb. Here is my code: $posts = ...
0
votes
1answer
444 views

Get posts from multiple tax terms

I'm trying to get related posts by taxonomy term. So a post tagged to 'London' would have related posts tagged to London. The code I have works if the post is tagged to a single taxonomy term only - ...
0
votes
1answer
83 views

List a custom post type's posts ordered by nested custom taxonomy

Like the title says I have custom post types and custom taxonomy for that type. For the Taxonomy I have terms in 3 levels like this: -> Term 1 --> Term 1a --> Term 1b -> Term 2 --> Term 2a --> Term ...
0
votes
1answer
40 views

How to output taxonomy term (incl. link to archive) on author.php?

I have used the excellent tutorial of Justin Tadlock on Custom user taxonomies in WordPress to add a Blog custom taxonomy to both my Posts post_type as well as the user object_type. In his tutorial ...
0
votes
1answer
132 views

Get terms that don't belong to current post with a shortcode

Is it possible to retrieve all the terms of a custom hierarchical taxonomy that do not belong to the current post? Perhaps by using wp_get_post_terms()? I recently stumbled upon this unusual need. ...
-1
votes
2answers
128 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 ...
0
votes
1answer
315 views

Get all terms, including unchecked, or get the terms outside loop

I'm trying to return all the terms for a particular taxonomy (so eventually I can create a link for it). At the moment, this function I've written only returns terms for the current post. How can I ...
0
votes
1answer
449 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 ...
0
votes
2answers
149 views

Display yesterday's last post's Custom field from Unique terms of one Taxonomies

I have problem in my first theme design, and I think you can help me easily!(I searched my problem several times in Google and WordPress codex but I cant find exactly that I want!!) I want to ...
0
votes
2answers
125 views

Exclude 2 in 3 terms of A Taxonomy from all Archives

I have read this post: Include and Exclude Taxonomies From Archives & Feeds Using 'pre_get_posts' And then I have used that function to my theme. My Taxonomy (tinh-trang) had 3 term: ...
0
votes
0answers
27 views

link generated term list to latest post of term

i use the following code to generate a unordered list of all terms within a taxonomy and a nested list with all posts of the terms direct under the lsit item of the term <ul ...
0
votes
2answers
137 views

Get used terms by an author as array of strings

I am using list_author_used_terms function below to get the terms used by a specific author (terms of a custom taxonomy 'wossom' for a custom post type 'aya-bi-aya'). function ...
0
votes
0answers
32 views

How to include child terms within parent?

I have the following for a specific term ID: <?php if (!is_tax( 'listing_category', '542' )) { ?> test1 <?php else: ?> test2 <?php } else { ?> This works great for making ...
0
votes
1answer
222 views

Get the terms of a custom taxonomy for a specific author in author template

I am using a custom post type in my website and a custom taxonomy for it. An author selects one or many terms before publishsing its post. My goal is to display authors pages in front end, so I ...
0
votes
2answers
734 views

why the archive of custom taxonomy term shows nothing?

I have a custom post type for which I have created a custom taxonomy called 'tag'. taxonomy-tag.php file looks like this: <?php get_header(); ?> <?php $term = get_term_by( 'slug', ...
0
votes
1answer
275 views

Show related posts on single.php, grouped by taxonomy terms, with Advanced Custom Field post object selected

I have posts of custom taxonomy called Areas with terms such as Articles, Presentations, News etc. These terms are applied to the normal post-type "post". Under a custom-post-type called "Company", I ...
1
vote
1answer
1k views

Why is my WP_Query not working when tax_query terms are an array?

I have an issue with a WP_Query for a site I'm building which has me stumped. This works as expected: $package_args = array( 'post_type' ...
0
votes
1answer
46 views

Add the custom post term to the custom post title

what I need is this: add a term from a custom post to the post's title. Like this: Custom Post title - term Right now I have: $terms_of_post = strip_tags (get_the_term_list( $post->ID, ...
0
votes
1answer
21 views

Admin (All posts) stop responding problem

I have situation like this: I have site with 500+ posts, 10+ custom taxonomies, one of taxonomy have 20000+ terms. When in admin panel I go to Posts-> All posts wordpress opens the page but stops ...
0
votes
2answers
488 views

Automatically Assign Parent Terms When A Child Term is Selected

I have deep hierarchical taxonomy and I want to have all parent term assigned when I select a child term. I need it for category structure on a online listing/classified site. CPT name: product ...
1
vote
1answer
113 views

Can't set custom taxonomy terms via custom form

Question I am creating my first plugin and in it users will be able (among other things) to create new post via custom form from wordpress backend. This post uses custom post type and custom ...
0
votes
1answer
328 views

input radio 'checked' saves, but select option 'selected' doesn't

So I followed a tutorial on how to create a meta box w/ the taxonomy terms shown in radio buttons. (Tutorial here for others if interested: ...
0
votes
1answer
100 views

Delete Term via edit-tags.php

I might get rep'ed down on this - but is there suppose to be a "Delete" link on the edit-tags.php page? Note: not the WP-List-Table, but the actual page where you specifically view the terms ...
1
vote
1answer
351 views

Handling duplicates with wp_insert_term()

I'm using wp_insert_term which works quite well Now I want some error handler for when using the same name. $term_id = wp_insert_term( $term, 'wpsc_product_category', $args ); if($term_id) {//my ...