Since WordPress 2.3, plugin and theme authors have had the ability to create custom taxonomies-- essentially specialized "categories"-- to help organize information.

learn more… | top users | synonyms

2
votes
8answers
9k views

Filter get_categories() for taxonomy term in WordPress

I want to show a category only if a (custom) post is in that category AND region = $name for that post. So, e.g. I have a custom post (type "business") named "Mamma Mia" in child-category: ...
2
votes
1answer
161 views

Automatically assign taxonomy term if custom meta value exists

I currently have a custom meta field for adding a video url to the post. I'd like for the existing taxonomy term "video" to be automatically assigned to the post upon saving if the meta field has any ...
2
votes
1answer
279 views

Custom Taxonomy: Parent still counting deleted Child

I have this weird situation when I deleted two child taxonomies but they still seem to be assigned to their parent. I need a overview site for all our products with the taxonomy title ahead. If ...
2
votes
1answer
890 views

Custom Post Type / Taxonomy Slug / Post Title with post type archive

I've tried plugins, read through stack and spent hours on this, and I just can't seem to find a way to achieve what I want. I can achieve the following permalink structure: ...
2
votes
1answer
1k views

How to get first post in a category of a custom taxonomy

I'm attempting to make a list of categories bound to a custom taxonomy, but using the featured image of the first post in each category. Getting the categories was simple enough, but when I try to ...
2
votes
1answer
37 views

Last posts from custom taxonomy

How can I post last posts from custom_taxonomy? I tried this like, but it doesn't works. $terms=get_terms('tax_name'); $request=array(); if(count($terms)>0) { foreach($terms as $t) { ...
2
votes
2answers
868 views

Different templates for parent and children categories/taxonomies

I would like to know what is the best way to create a different template for parent and children categories and/or taxonomies. Example: I have a taxonomy called region, which I want to divide in ...
2
votes
1answer
585 views

Edit post meta with checkboxes on front end

I'm trying to build an interface so that two custom fields for a custom post type can be edited on the front end with checkboxes. I'd like to display empty checkboxes if neither of those the fields ...
2
votes
3answers
1k views

Taxonomy archive with same slug as custom post type?

My head hurts... Here is what I have: Custom post type: Our People, slug => our-peopleTaxonomy: Job Title, slug => job-title I have an archive page for the Our People CPT at domain.com/our-people. ...
2
votes
1answer
982 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
2answers
1k views

Highlight menu item when on a custom post type?

I'm currently using this code to display a menu of pages. I'm using CSS to target the class current_page_item which works fine until you're on a page with a custom post type. How can I target that ...
2
votes
2answers
484 views

Are Categories, Tags and Custom Taxonomies any different in regards to SEO?

Simple question, really. I know pretty much nothing about SEO, and i'm trying to define a good structure for this clients online magazine. I already know i'll be using a few custom taxonomies along ...
2
votes
3answers
159 views

How to make custom posts to behave like taxonomy?

I would like to have a database of fashion models on my blog. The models section will be located under /models/. There shall be a loop of recent posts with models as well as the full list of models ...
2
votes
1answer
527 views

How to delete terms on plugin deactivate?

I created a list of terms under 'category' when activate plugin. When deactive the plugin, I want to delete them. My function doesn't work, how to make this working? function ppcontent_deactivate() { ...
2
votes
2answers
2k views

Taxonomies: display hierarchical parent list

I've been using WP for years, but this is my first time with taxonomies, so I need a little bit of help. Like in the question How to show a hierarchical terms list? I have a taxonomy called places, ...
2
votes
2answers
1k views

How to remove “Taxonomy name:” from wp_title

The wp_title-generated <title> in my custom taxonomy archive pages contains the singular taxonomy name with a colon. I can't figure out where this is coming from (or if it's default Wordpress ...
2
votes
2answers
2k views

Improving WP_Query performance for multiple taxonomies

I have a site with several custom taxonomies, and have found that one of the slowest parts of the site is attempting to query with an OR across several of these at once. I'm using a WP_Query like so: ...
2
votes
1answer
293 views

post count is wrong when using same taxonomy for 2 different CPT

1 custom taxonomy registered for 2 different CPT (custom post type). When i entered to edit tag section on edit-tags.php?taxonomy=mytaxonomy&post_type=cpt1 it displays total post count of 2 ...
2
votes
1answer
366 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 ...
2
votes
3answers
1k views

How to get the parent's taxonomy?

I have 2 customs post type : "Artist" and "Concert", the "Concert" custom post type is the child of the "Artist" custom post type, the "Artist" custom post type has a "genre" taxonomy. What I'm ...
2
votes
2answers
513 views

Multiple users – only allow them to manage their own terms for custom taxonomy when logged in

How can I allow each user to manage their own terms for a custom taxonomy when logged in on edit-tags page? user will only show & manage terms that only created by him not others for a custom ...
2
votes
4answers
2k views

Remove Custom Taxonomy Base

I am using custom taxonomies with WordPress 3.0.4 I am wondering if anyone knows how to remove the taxonomy base from the URL? I have seen plugins that do it for categories and tags, but not for ...
2
votes
1answer
5k views

Get the 'slug' of a custom taxonomy

Use case: I have a custom post type of 'show' for a music venue. In the sidebar we want to display any related 'show' to the current one on single-show.php. They will be related by a custom taxonomy ...
2
votes
1answer
182 views

Woocommerce custom shared taxonomy

I've added custom shared taxonomy season for product type from woocommerce and my custom type care. Care type and taxonomy are created in functions.php file of my custom theme. add_action('init', ...
2
votes
1answer
795 views

Custom Taxonomy Leads to 404 Page - Permalink Structure Flushed

I have a CPT: function CPT_init(){ register_post_type('custcpt', array( 'labels' => array( 'name' => __('Products'), ...
2
votes
1answer
451 views

WordPress Custom Post Type Category Page

I was hoping someone could help me. I have done some serious googling but cannot find the answer for this one. I have a custom post type called tutorials. I can go to mysite.com/tutorials and get a ...
2
votes
2answers
256 views

Paginated Taxonomy Term Archive including one post per term

I have a custom query which gets all the custom taxonomies for the custom post type and displays the latest post in each. At the moment it pulls in all the taxonomies. Is there a way I can limit the ...
2
votes
1answer
743 views

How to share category taxonomy with custom post type (The Event Calendar plugin)

I have a custom post type 'Events' created by The Event Calendar plugin. It has registered it's own custom taxonomy. Is there a way I can assign the regular WP post categories to some of these events ...
2
votes
2answers
4k views

Check if Current Category has Children

I need to tell whether or not the current custom taxonomy archive page I'm viewing has child categories. I've got a situation where there are a lot of custom categories with children and the site is ...
2
votes
2answers
212 views

How to output content based on same custom taxonomy?

I have been trying to output content of all post-types (Posts, Pages and CPTs) based on a term of a custom taxonomy that they must share (meaning if they don't share that particular term, the output ...
2
votes
2answers
330 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
1answer
433 views

Order posts by (hierarchical custom) taxonomy terms and term children

The scenario a custom post type wiki a (hierarchical) custom taxonomy topics a page template archive-wiki.php The situation Posts show up and get ordered by post_date (which is the default). The ...
2
votes
1answer
124 views

Wordpress renames slug of tags used in multiple taxonomies?

I've noticed Wordpress renames the slug of identical tags used across multiple taxonomies, is there an easy way to change this behavior? Let's say I create a tag called Nintendo under the publisher ...
2
votes
1answer
182 views

404 Error with Custom Post Types and Taxonomy

I am creating a website for a real-estate agent and have encountered an issue which I assume is Custom Taxonomy and Post Types. Custom Post Type: Property Taxonomy: District Example URL: ...
2
votes
1answer
174 views

custom post type permalinks with category and tags

I have a custom post type called 'designs' and have registered taxonomy 'design_category' and 'design_tag'. I'm trying to get the permalinks as follows but not having much luck - seems having 2 ...
2
votes
1answer
1k views

Permalink rewrite with custom post type and custom taxonomy

I think thats a quick one: I've got: Custom post type: Food Custom taxonomy (Registered to Food): Fruits Terms in Fruits: Apple, Orange, Cherry If I type in example.com/food?fruits=Apple,Cherry, ...
2
votes
2answers
298 views

Create new category upon save based on post information

After finding a couple of leads on how to do this, I'm coming up blank. What I am trying to accomplish is to add the post to a new category based on camera name. If the category doesn't exist, then to ...
2
votes
1answer
1k views

Show WordPress Custom Taxonomy Items Based On a Selected Item From Another Custom Taxonomy

Let me explain the problem I am dealing with: I have 2 custom taxonomies. One is named "thestate" and the other one is named "thetown". In "thestate" I have listed all the states in the U.S. In ...
2
votes
1answer
888 views

How can I display parent and child taxonomies in separate drop downs?

The requirement is where i have a taxonomy State which is the parent and it has a child sub-taxonomies they are the Cities, Need to display the state as a drop down, when i select the particular state ...
2
votes
2answers
841 views

How to display different single post template based on author?

My current singlepost.php makes use of the following if conditions and renders the appropriate template. <?php $post = $wp_query->post; if ( in_category('4') || in_category('59') ) { ...
2
votes
2answers
677 views

How can I show recent posts from same taxonomy as the post currently being viewed?

I'm wondering how I can show recent posts from the same taxonomy as the post that's currently being viewed (working with custom post types and custom taxonomies). If it was simply a category of a ...
2
votes
1answer
846 views

In a loop of custom post type, display first custom taxonomy term

I would like to display just the first term from a custom post type custom taxonomy. Inside my loop I've been displaying all the terms using: <?php echo get_the_term_list( $post->ID, ...
2
votes
2answers
4k views

Removing taxonomy base using WP rewrite

I´m trying to create the following URL structure: example.com/attractions <-- post type archive example.com/attractions/taxonomy_term <-- taxonomy archive ...
2
votes
3answers
1k views

Use tag interface for hierarchical taxonomy?

Custom taxonomies are great. I registered a bunch of new taxonomies and wrote an importer to import our hierarchical taxonomy into WordPress a la XML. The problem is one taxonomy has about 1,100 terms ...
2
votes
2answers
419 views

Getting archive pages in WP's AJAX internal link finder?

I often need to link to custom taxonomy term archive pages and would love to be able to do so through the AJAX internal link navigator added to the visual editor in 3.1. Is there any way to get this ...
2
votes
1answer
802 views

How to display a description of a given category from a custom taxonomy

I have a taxonomy called tcp_product_category. In the admin panel I have created a few terms within this taxonomy. On the homepage I want to display the description of one of those terms with the slug ...
2
votes
4answers
5k views

Get custom post type by category in a page template

I've created a custom post type with categories and sub categories, what I need to do is list out the post titles and images for a given sub-category or category in a page template. I've got as far ...
2
votes
2answers
356 views

Want to turn Wordpress into a paid subscription directory

I need to create a paid subscription directory where people can register their business and enter its details. Subscriptions should be paid on a monthly or yearly basis. Business details include ...
2
votes
1answer
1k views

How to get the first term for the current taxonomy?

I'm using the following code to display the term for a specified taxonomy: $terms = get_terms( "book_review" ); $category = $terms[0]->name; However I want to display the term for whatever the ...
2
votes
4answers
3k views

How to get parents of custom taxonomy, as what get_category_parents() do?

I have a custom taxonomy 'portfolio category', while i need to show all hierarchy categories of a portfolio post, for example the post is under topcat -> childcat -> yetchildcat, i want to show ...