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

3
votes
1answer
10k views

Limit the number of posts in query_posts function with custom post types

I am using the code below to display posts defined as a custom-post-type and filtered by a custom-taxonomy of 'england'. I've tried using 'posts_per_page=5' in the query_posts function but this ...
3
votes
2answers
2k views

Custom post type taxonomies URL rewrite

What I want to achieve is an online listing catalog with a URL like this: www.example.com/drawing-tools/brand/type/material/color/ In this example, I have a custom post type named "drawing-tools" ...
3
votes
1answer
318 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
2answers
875 views

Custom Comment Types

I have created a custom post type for a sort of gallery whereby users can upload work etc. In addition to this I have taxonomies for this type such as categories, tags, colors, etc. But I want users ...
3
votes
2answers
1k views

How do I create multiple post types in same menu section in WP-admin?

I am building a custom menu section (a new item with subitems in the main menu section on the left side) in the WordPress Administration of my website. The section shall include a main post type, and ...
3
votes
3answers
732 views

Issues when rewrite rules collide?

Is it a problem to have a custom taxonomy and a custom post type use the same rewrite structure? I have a custom taxonomy people and a custom post type people_bio. The idea is that you get a list of ...
3
votes
2answers
3k views

Linking between custom post types as if they where taxonomies?

Let's say we create an IMDB like website. So (for example) we can have two types of custom post types: movies actors We would like to see in each movie page all of it's actors. And in each ...
3
votes
1answer
147 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
195 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
89 views

Site Structure Regarding Custom Post Types and Taxonomies

I need assistance with site structure with regard to properly setting up my Custom Post Types and Taxonomies. I am developing a lifestyle site. It will not be a WP multi-site configuration. This ...
3
votes
3answers
238 views

Custom Taxonomy Relationship (ex: plant classification)

I'm trying to implement plant classification as a custom taxonomy for a custom post type. For now, plant classification should be on three levels: Family, Genus, Species. As I see it, there are two ...
3
votes
1answer
246 views

Custom taxonomy only showing top level terms in admin?

I have a hierarchical custom taxonomy that I add terms to programatically using the following code in a loop: -- SNIP -- $args = array( 'description'=> '', 'slug' => ...
3
votes
2answers
551 views

Use custom posts as taxonomy term meta replacement?

Taxonomies are very useful for all sorts of things. But as many have pointed out they suffer from their lack of ability to carry metadata. Assuming I have only posts that don't have 'natural' parents ...
3
votes
2answers
1k views

Custom metabox for menu administration page?

I've been googleing around but failed to find a solution for my need. I'm using wordpress 3.0 and TwentyEleven theme as default pack. In the Dashboard -> appearance->menus that allow user can ...
3
votes
1answer
423 views

Integrating an interactive map into a Wordpress custom post type

A while ago I created an interactive map for my website using Ian Lunn's BBC News Map, and custom fields to set the html for each area. It looks like this:- I'm now trying to integrate this with a ...
3
votes
1answer
1k 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
2k views

Wordpress json api taxonomy index method

In edition to this post below: wordpress json custom taxonomy problem How to write a method for getting categories withing a custom taxonomy, similar to Method: get_category_index in core json api ...
3
votes
3answers
2k 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 ...
3
votes
1answer
5k views

How to pass URL parameters for advanced taxonomy queries with multiple terms for one custom taxonomy

This answer provides the code for a query that returns an OR match on a taxonomy term: global $query_string; $args['tax_query'] = array( array( 'taxonomy' => 'status' ,'terms' ...
3
votes
1answer
521 views

Custom Fields and performance

My question : how many custom fields or even taxonomies WordPress can handle without affecting performance? The reason I ask, is because I started building a custom theme and I might need to have ...
3
votes
1answer
185 views

Admin to user notices - best practices?

I am trying to replicate specific functionality from my vb forums in my wordpress install. Specifically I can create 'user notices' that are displayed on the front end of the website. Basically I can ...
3
votes
2answers
719 views

Nice URLs for a Custom Post Type List with a Shared Custom Taxonomy?

(Moderator's note: Title was "Convert into nice URL a shared custom taxonomy URL with a query string value") I have a custom taxonomy template: taxonomy-country.php used by two (2) Custom Post Types: ...
3
votes
1answer
795 views

How to Programically add to the new WordPress menus

Pre WordPress 3.x I was using: add_action( 'init', 'product_register' ); add_filter( 'wp_page_menu', 'custom_page_nav', 90 ); function product_register() { // register_post_type( 'product', ...
3
votes
1answer
557 views

Sorting for each custom taxonomy

I have a custom post type called Baseball Players which contains teams, positions, and a league taxonomy. A team consists of the team name, logo, description, and coach. A position just consists of ...
3
votes
1answer
205 views

register_taxonomy with multiple object type and update_count_callback

The register_taxonomy accept array as the object type so I can link as many custom post types to a custom taxonomy. That is fine. The issue is, the default taxonomy count is always zero with the ...
3
votes
1answer
538 views

get_query_var() not working in pre_get_posts

I'm using the pre_get_posts hook to order the main query on all my custom post type / taxonomy pages using a custom meta value. As part of the logic, I am trying to determine which taxonomy is ...
3
votes
1answer
516 views

Retrieving custom taxonomy in order, but excluding specific tax IDs

I have a function set up and working based off the discussion in this thread: Custom taxonomy, get_the_terms, listing in order of parent > child. My version includes term links and allows me to ...
3
votes
1answer
1k views

How to convert regular categories to custom taxonomy?

I have a big list of categories/subcategories (around 60 in all). It now makes sense that instead of these categories being available to any post type's category list, these categories should be moved ...
3
votes
1answer
534 views

Dynamic page slug for Custom Taxonomies?

I have a custom page "fine-art", which lists the different types of fine art that we produce based on the custom-taxonomy "fine_art_category". Some of the custom taxonomies are wood, metal, Fine Art ...
3
votes
1answer
291 views

Best Way to Leverage Custom Post Type Related Content and Consider SEO

I'm doing a real estate project for a client. I've created a custom post type called "communities" to list new construction communities in her area. I also want to have deeper sub pages but I would ...
3
votes
1answer
292 views

Query two taxonomies via URL or link?

I've been banging my head about this, and have created a work-around, but it would be much nicer for my site's organisation if I could figure this out. I want to be able to query posts across two ...
3
votes
1answer
992 views

The same slug in multiple taxonomies

We have a project that uses several custom taxonomies, and we're finding that the client wants to add the same term in several of them. While the first slug for Foo may be foo, subsequent copies of ...
3
votes
2answers
572 views

Copy a Taxonomy Term into the Post Title for a certain Custom Post Type

I am using Gravity Forms to allow users to create posts from the front end. However, the way this site I am building is going to work, one specific Post_Type is essentially just a "Data" post. There ...
3
votes
1answer
306 views

Best practices for complex taxonomies

I have a question about complex taxonomies. What are the pros and cons of tagging multiple terms? For example, tagging the lowest "child" or all of them up to the "parent." I'm currently working on a ...
3
votes
1answer
669 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
1answer
2k views

Rewrite permalinks for custom posttype and custom taxonomy

How to rewrite permalinks for a custom posttype and custom taxonomy? I have a custom taxonomy: region, and a custom posttype: business. Now, how to rewrite the permalink, so that for a category, ...
3
votes
2answers
540 views

WP_List_Table inside metabox not working on submit

I'm trying to display a WP_List_table inside a metabox. The metabox is for a custom taxonomy called 'service' which is registered to a custom post type called 'office'. The table columns contain input ...
3
votes
2answers
2k views

Using URL parameters, list posts from category and custom taxonomy

For example, http://example.com/?cat=6&tag=books lists posts that belong to category ID 6 and tagged 'books' (i.e. posts that satisfy both conditions). Similarly, ...
3
votes
1answer
550 views

Extend walker class with custom post types [closed]

I'm using the walker class below, but I can't make it work with custom posts. class Zwp_Walker_Nav_Menu_Dynamic extends Walker_Nav_Menu { function end_el(&$output, $item, $depth) { ...
3
votes
1answer
1k views

Custom Post Type Permalink For Parent/Child, 404 Page Not Found Error

Here we have a snippet from a functions.php file... add_action('init', 'create_recipes'); function create_recipes() { $recipes_args = array( ...some properies..., 'hierarchical' ...
3
votes
1answer
614 views

Excluding a custom taxonomy term breaks wp_get_post_terms

I'm trying to exclude one custom taxonomy from an archive page, and then show the terms of the returned posts. When I run WP_Query to exclude the custom term, it returns the posts correctly, but no ...
3
votes
1answer
277 views

Help with a TV series Rewrite structure

Not sure if this is possible, but bear with me. I think I am halfway there. First a little background: I'm using the build in hierarchy in WordPress to form relationships between post types. I ...
3
votes
1answer
453 views

Highlight nav menu terms

OK so i have custom post types and custom taxonomies. I have a sub-menu that is made of the custom taxonomies. Example: registered taxonomy: Movies and terms: action, adventures, etc. (= menu ...
2
votes
4answers
10k views

Get current page's taxonomy

I've got some pages with a custom taxonomy for each page and i'm trying to retrieve this taxonomy on the page. I'd basically need something like the_current_taxonomy() like the_title(). This has to ...
2
votes
5answers
1k views

Custom Taxonomies but with Icons associated?

Can I have custom taxonomies but with icons associated with them? Example: I want a list of skills I used for my portfolio item (eg. PHP, MySQL, CSS etc). Instead of text, I thought of displaying ...
2
votes
2answers
3k views

Displaying Posts Related to Other Posts by a Taxonomy Term?

I have a custom post type for musician's profiles, and a taxonomy for their location (categorised hierachically into Countries and then Cities). On the musician's individual profile pages I need to ...
2
votes
1answer
4k views

Are Custom Taxonomy Templates Possible?

I am trying to have some information specific to a taxonomy term appear above that taxonomy's archive list. Example: Taxonomy is 'Sports', with football, soccer, and baseball being terms within the ...
2
votes
1answer
7k views

Get term name from term ID?

I cannot figure out how to get the taxonomy term name if I have the taxonomy term's ID. This is my current code // create a dropdown menu of the quantity taxonomy wp_dropdown_categories( ...
2
votes
2answers
8k views

Add category base to url in custom post type/taxonomy

I am building an LMS type system in WordPress, controlled by Custom Post types. The post type is called Lessons (with a slug of courses) and it has one custom taxonomy (category) called courses. The ...
2
votes
2answers
3k views

Include and Exclude Taxonomies From Archives & Feeds Using 'pre_get_posts'

What I am trying to do? My blog uses a custom taxonomy called edition with terms like us-canada (6), eu (7) and india (8) -- term slug (ID). I want to make sure that posts not assigned to any ...