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
33 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
762 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
73 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
94 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
2k 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
509 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
94 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
44 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
141 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
152 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
404 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 ...
1
vote
1answer
658 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
175 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
142 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
28 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
163 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
33 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
262 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
839 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
320 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
2k 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
50 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, ...
2
votes
2answers
9k views

Display all the subcategories from a specific category?

I need to show all subcategories using $product_category = wp_get_post_terms( $post->ID, 'product_cat' ); actually I use: <?php global $post; $terms = get_the_terms( $post->ID, ...
0
votes
1answer
22 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
653 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
134 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
372 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
118 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
438 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 ...
0
votes
1answer
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
2answers
292 views

Add text to the end of each list item in wp_list_categories

I haven't been able to find what I'm looking for and not sure how to approach it. I'm using wp_list_categories to obviously list terms of a taxonomy. I'd like to add some text to the end of each ...
0
votes
1answer
230 views

How can I get the name of term post meta value which equals term id

I have a custom taxonomy (location) that is being populated automatically by an advanced custom field on user save. The issue is that it saves the term_id in the postmeta meta_value field. When I echo ...
0
votes
1answer
345 views

Custom Post Types Archives and Single Pages not showing custom taxonomy data

I have a custom post type called "Newsitems" that I have registered two custom taxonomies for: "newsitem types" and "news item tags" I want these two taxonomies' terms to appear almost like the ...
1
vote
0answers
278 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 ...
0
votes
4answers
1k views

Get post by term from custom taxonomy in another blog on the network?

I'm having trouble getting post by term in a custom taxonomy I have set up. The catch is this is multisite and I'm getting this data from another blog on the network where the taxonomy is registered. ...
0
votes
1answer
155 views

Author template - separate custom post type by custom taxonomy term for $curauth

Basically I have a post type called photograph, I then have a Taxonomy group called "Subject" and several tax terms i.e. Abstract, freeze frame etc (Approx 18 in total) under that Taxonomy group. I ...
1
vote
1answer
455 views

Changing taxonomy term by slug (wp_update_term)

What I am trying to accomplish is to update a taxonomy term name using its slug rather than the $term_id Wordpress does this by: <?php wp_update_term( $term_id, $taxonomy, $args ) ?> Is it ...
1
vote
1answer
256 views

How to display posts via custom taxonomy terms using checkboxes?

I would like to have a form with checkboxes. Each checkbox would be a term of my taxonomy "cities". The idea is that if a user select any of the checkboxes, it should show all posts that are NOT in ...
0
votes
1answer
76 views

array_replace throwing php_warning but working anyway

Hello I have a question which is maybe more PHP question than WordPress, but could be interesting in a WordPress context in case someone wants to add properties to an WP object. I have created a ...
0
votes
1answer
207 views

Return Taxonomy Name for Each Term

I am returning a list of the terms from three different taxonomies. $terms = get_terms(array("air-categories","web-categories","ink-categories")); I get the list and I need each to link to a ...
0
votes
1answer
1k views

Woocommerce getting top level category parent and make all sub categories have the same template and menu

I want to get the top level category parent which is "wedgwood" so i give it a different menu and different template that what i wrote so far but it dont apply except on ‘wedgwood’ category wegdwood ...
0
votes
1answer
96 views

If post has ANY term attached to it, get the first one only

I am developing a theme that has several custom taxonomy that act as radio buttons. How do I write a conditional that does... if(post_has_any_terms($post->id, 'custom-taxonomy')) { echo $term; ...
1
vote
2answers
236 views

Have a Custom Post Type index page display taxonomy items instead of posts

I have a CPT registered that is called lessons with a custom taxonomy (category) that is called courses. I want the /courses page (archive-courses.php?) to display the individual courses (i.e. "online ...
1
vote
1answer
336 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
1answer
135 views

Show all terms in a custom taxonomy with all child terms wrapped in a ul

Is there a way that I can list all the terms within a custom taxonomy in an unordered list and wrap all child terms in another unordered list? For example; <ul class="menu"> ...
1
vote
2answers
167 views

How to List Parent Term Links for Custom Taxonomy With & Without Children?

I have a Custom Post Type of "projects", that is categorized by a Custom Taxonomy of "industry", which is heirarchical. Projects & sub-projects are assigned to the industries. For Example, the ...
1
vote
0answers
43 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 ...
0
votes
1answer
176 views

How to list posts by term (custom taxonomy)

I created a custom post type (portfolio), with custom taxonomy (portfolio-category). I created a template, this template lists all "portfolio" posts. <?php while ( have_posts() ) : ...
2
votes
1answer
152 views

Category page only displaying the posts from a custom type

Situation I have two cpt: Projects Works In these two CPT I share the same taxonomy 'Category', and the same terms: Architecture Landscape Interior Design I have URLs like ...