A taxonomy is a generic "category" used to organize posts and custom post types

learn more… | top users | synonyms

3
votes
2answers
1k views

Filtering Posts by Multiple Taxonomy Terms such as in an Admin Post Listing?

After reading Adding a Taxonomy Filter to Admin List for a Custom Post Type? I tried it but I wasn't able to get it to filter two (2) different taxonomies at same time. The system is only filtering ...
3
votes
2answers
1k views

get term by id without taxonomy

Can I get the term by it's id without knowing to whish taxonomy it belongs? I have a meta field that stores term ids, but doesn't store the taxonomy. However, all the get_term function have taxonomy ...
3
votes
1answer
787 views

How to group meta boxes on the post edit page

I suspect that this is not possible right now, but oh well.. I'll ask, maybe one of you has some intersting thoughts to share. So let's say we have the following taxonomy terms meta-boxes on our post ...
3
votes
1answer
2k views

List taxonomy terms as links

How can I make a list of links of all the taxonomy terms I'm using? For example, I have a taxonomy of Manufacturers with terms of Honda, Ford, etc. I want to list out those terms as links.
3
votes
1answer
8k views

How can I add the featured image functionality to a custom taxonomy?

I would like to be able to use the 'featured image' functionality, found on post types, for a custom taxonomy. I have a taxonomy called 'collections' and I would like each collection to have a ...
3
votes
3answers
215 views

Display posts the match taxonomy term linked from wp_list_categoies?

This should be simple, but it escapes me. I have a custom post type and a custom taxonomy. The taxonomy is named "asset_type" and the slug is "type" I am using wp_list_categories to provide a ...
3
votes
1answer
1k views

Wordpress custom taxonomy description for each post?

In a Wordpress blog, I'd like to put the term description of a specific custom taxonomy in the footer of each article. Is this possible? I've tried <?php term_description( $term_id, $taxonomy ) ...
3
votes
1answer
5k views

Custom Taxonomy as Dropdown in admin

I’ve created a custom post type (called Sponsors) with an additional taxonomy connected to it, called “Type”. Everything is essentially working perfectly but I would very much like to have my ...
3
votes
1answer
1k views

Widget to display custom taxonomy tag cloud

How to alter the default widget to display a tag cloud of a custom taxonomy?
3
votes
1answer
3k views

Custom Taxonomy Template Post List with Sort Order

I have an interesting problem I am trying to solve. Here is my situations: I have create a custom post type for "events". For each event post I require custom fields to be entered for the event ...
3
votes
1answer
387 views

Integrate post tags in Post Edit page with qTranslate

Summary In the tags widget in the Post Edit page, I need to know a way to filter through: the tags suggestions the tag terms update when saving or updating the post At least that is what I think ...
3
votes
1answer
630 views

Control term order on a per-post basis

I have a taxonomy in which term order matters, but varies from post to post. So I want to be able to set the order that terms are displayed in on a per-post basis: My first post | Tagged: Apples, ...
3
votes
1answer
256 views

Custom Taxonomy-specific JavaScript

I'm looking to add some scripts and styles to particular taxonomy page. For example, I want to have a banner rotator only appear for posts that fall under the "issue" custom taxonomy. I've tried ...
3
votes
1answer
39 views

Modify Term Update Redirection

Whenever I update a term it currently redirects me back to the edit-tags.php page for that taxonomy, the term list. Is it possible to instead of redirects to the term list to instead bring me back to ...
3
votes
1answer
65 views

wp_options table value

I am trying to understand a wordpress behaviour. When I add a tag in the admin panel mysql does a sequence of queries. Essentially: update wp_terms update wp_term_taxonomy and udate wp_options with ...
3
votes
1answer
910 views

How can I set up a category “overview” page?

I know I can use the Template Hierarchy to set up custom theme pages for terms inside a category, like these: mysite.com/category/tech/ // category-tech.php mysite.com/category/blog/ ...
3
votes
1answer
102 views

Is there any difference between post in child term and child & parent terms?

This may be really obvious, but I can't find other documentation or questions about it. Scenario I have a directory of Businesses (custom post types). Each Business has a "Type" (custom taxonomy). ...
3
votes
1answer
99 views

How would I leverage custom Taxonomies in this scenario?

2 Tier research: I am building a site for a client that specializes in research travel. They offer 2 tiers of research assistance, "Standard" and "Premium". Each of those levels of service have ...
3
votes
1answer
875 views

How to set a Preset category for custom post types?

For Posts you can have a preset category where all Posts fall if not specified otherwise (settings → writing). Can this be done for custom post types that have a custom taxonomy? The ...
3
votes
1answer
142 views

List taxonomies with thumbnails

I've added an extra field to a taxonomy called "albums" via this function: add_action( 'albums_edit_form_fields', 'albums_taxonomy_edit_meta_field', 10, 2 ); function save_taxonomy_custom_meta( ...
3
votes
1answer
3k views

How do I dynamically populate wp_nav_menu from a custom taxonomy?

I know this question has been asked in different forms. But as far as I can tell from searching Google and SE/WP it's never been satisfactorily answered. Let's say I have a taxonomy clubs and a ...
3
votes
1answer
862 views

How can you make permalink work for custom post type and taxonomy?

I have spent days now trying to figure this out, StackOverflow is my last resort. All I want is the following: ...
3
votes
1answer
648 views

Sort posts by number of matched terms

I have form where I list all terms associated with posts as check boxes, user should pick few of them, hit search and get all posts that match all chosen terms. It works great when there are posts ...
3
votes
2answers
283 views

Add additional data to a specific taxonomy term when used in a post

If I'm using a custom post type for a Movie or a TV show episode, I may use a taxonomy for "actors" and assign all the actors related to the work to it, but I'm not sure how, besides of that, I can ...
3
votes
1answer
4k views

How does Woocommerce store variation attributes, and how can they be retrieved per-variation? [closed]

I am trying to pull out a list of product variations from a Woocommerce installation, with their attributes - something like this: product id variationid name color size 5 1234 ...
3
votes
3answers
152 views

Taxonomy + post_type

I'm quite lost with taxonomies and custom post type. I have a taxonomy -> auteur I have custom_post-type -> citation (quote in french). I just want list all citations (quote) from an auteur ...
3
votes
0answers
498 views

Post Link Filter Help [closed]

I Am probably being a complete tool here but I am trying to change the permalink on my custom post type to a particular category child. The code in essence works but I cannot for the life of me figure ...
2
votes
4answers
6k views

How can I remove links from the function “get term list”?

<?php echo get_the_term_list( $post->ID, 'people', 'People: ', ' ', '' ); ?> returns something like this: People: <a href="person1">Person1</a>, <a ...
2
votes
3answers
822 views

Child Terms not Displaying on the Taxonomy Term Admin Screen

I am experiencing an issue where terms with a parent are not being displayed in the category admin screen. The screen gives the total number of terms that should be there (i.e., 32), but only displays ...
2
votes
2answers
2k views

Fast way to add countries as a custom taxonomy term?

Is there a quick way to add a list of countries as terms to a custom taxonomy called "Country"? Is there an existing import file, SQL script ect... I don't want to be there all day manually adding ...
2
votes
2answers
2k views

Formating the_terms() function output

This code: <?php the_terms($post->ID, 'type') ?> Gives: <a href="/archives/type/image" rel="tag">Tag</a> What do to if I want to display only "Tag" word, not link eg. Tag ...
2
votes
2answers
3k views

Advanced Tax Query

Below is my tax query, at the moment this returns all posts which have at least one of the specified terms. Is there a way I can have it return only posts which have ALL of the specified terms? ...
2
votes
2answers
8k views

Getting Wordpress custom taxonomy/category?

Well, I'm using my own taxonomy for custom post type. It looks like this: register_taxonomy("our_gallery", array("gallery"), array("hierarchical" => true, "label" => "Types", "singular_label" ...
2
votes
1answer
1k views

Checking if a Page has an Associated Term?

I am looking for a way to do some conditional logic on terms associated with a post. Essentially I created my own custom taxonomy for "age groups" and have created three terms for them. Kids, Teens, ...
2
votes
4answers
4k views

Taxonomy: Why 'with_front' => false DOES NOT WORK?

Seriously, why 'with_front' => false does not work as it should be? It is supposed to remove TAXONOMY BASE NAME and my question is why it does not work? I just dont want the taxonamy base slug ...
2
votes
1answer
2k views

Search for tags

Is it possible, to search just for tags? Not any other taxonomies or post types, just tag titles.
2
votes
1answer
1k views

How do I display a tag cloud with both post tags AND a custom taxonomy?

Using wp_tag_cloud(), how can I display a single tag cloud that incorporates both regular post tags and a custom taxonomy?
2
votes
2answers
181 views

deleting terms programmatically

I already checked out this page; http://codex.wordpress.org/Function_Reference/wp_delete_term It does not say what happens to the posts that may have been associated with this action. Hence my ...
2
votes
2answers
447 views

wp_set_object_terms() — prevent overwrite?

From my understanding (and before trial and error), wp_set_object_terms( 'post_id', 'add_this_term', 'in_this_taxonomy'); But from the Codex, apparently adding the term will overwrite any other ...
2
votes
2answers
2k views

Group Custom post type in a page by its taxomony tag

I hope i can write a clear question since i got confused trying to solve this... I got a custom post type... that custom post type has taxomony (category like) and i want to return a structure like ...
2
votes
1answer
3k views

wp_insert_term - parent & child problem

I have a car database that I want to import into Wordpress as taxonomies. The problem is I can't create 2 taxonomies at once (first is parent, last ones are childs of first). $p = ...
2
votes
1answer
1k views

Create terms when registering taxonomy?

I'm registering taxonomy in my functions.php file: register_taxonomy("our_gallery_types", array("gallery"), array("hierarchical" => true, "label" => "Categories", "singular_label" => ...
2
votes
2answers
91 views

Consolidate Metaboxes into 1 Big Metabox

I have a post type with 7 (count it SEVEN!) taxonomy tag boxes. By default, the only options to display these metaboxes are - 7 small metaboxes on the right side stacking or turn these tag metaboxes ...
2
votes
1answer
105 views

Filter WordPress posts by between parameter

How to filter WordPress posts by a taxonomy and between parameter? Consider a mobile website with "memory size" taxonomy, I need to show posts that have more than 256 mb memory and less than 768 mb. ...
2
votes
2answers
426 views

Function to limit the number of posts in taxonomy.php

How can I change the post limit for taxonomy.php from that which is defined in the settings page? Currently I have 10 posts displaying per page, which is fine for the blog part of my site, but I want ...
2
votes
3answers
695 views

Custom Taxonomy in Permalink of Post

It is possible to use this as a permalink for a post: /%category%/%postname%/ But lets say I've created a taxonomy called "artist". I'd like to use this for my posts: /%artist%/%postname%/ I ...
2
votes
1answer
535 views

What hooks/filters are there to alter selected terms on post save?

Very simple, where would I hook/filter to alter the users selection of terms when they save a post (Update or Add)? I need to hook in all instances; such as when saving a post via AJAX, saving when ...
2
votes
1answer
1k views

Create an archive page for custom taxonomies

I switched my site from categories to taxonomies for my custom post but I am having trouble getting it to work the same way. For categories I could have templates named something like ...
2
votes
1answer
799 views

orphaned taxonomy terms remove by sql query

I have 3 custom post types each of these CPT's have posts that are set to auto delete via a given time scale by cron jobs, thing is when they are deleted it leaves behind orphaned taxonomy terms in ...
2
votes
1answer
418 views

Create Child Taxonomies

Is there a way to use the register_taxonomy function to create child taxonomies to a specific parent taxonomy in a hierarchical structure? For example: Let's say I'm creating a theme for selling cars ...