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
771 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
550 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
346 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
419 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
2answers
269 views

Taxonomy slug by term ID

I'm trying to modify wp_nav_menu to display term thumbnails. To get those thumbnails I need term ID and taxonomy slug: $thumbnailimg = get_the_term_thumbnail($term_id, '$taxonomy', 'medium'); I ...
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
450 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
278 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
275 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
885 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
516 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
297 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
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
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
1k 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
2answers
569 views

Create permalink structure for one taxonomy archive per custom post type

So, I've been going crazy trying to figure this out. Essentially, I've created two custom post types, 'the_case_study' and 'the_video', with respective slugs 'case-studies' and 'videos'. I've also ...
3
votes
1answer
475 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
502 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
265 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
449 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
1answer
6k views

“tax_query” parameter not working with WP_Query

I have a custom post type called 'episode'. Attached to 'episode' I have a custom taxonomy called 'video_type' that contains two terms: "bonus-footage" and "episode"; "episode" contains two child ...
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
5answers
11k views

How to get current term in my custom taxonomy in WordPress?

I need to display the current term in my custom taxonomy in a single post. example: My custom taxonomy is products and term of them is product-1, product-2 and products-3. My post is assigned to ...
2
votes
2answers
2k 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 ...
2
votes
1answer
995 views

How to Build a Movie Library in WordPress 3.x

To help me learn WordPress development, I'd like to go "beyond the blog" and build a personal movie library -- similar to IMDb but on a much smaller scale. I need help understanding how to approach ...
2
votes
3answers
1k views

Using a loop to display terms associated with a post

I'm using a custom post type and custom taxonomies, and using the following to display the terms of the taxonomies on the post page: the_terms( $post->ID, 'taxname', 'beforetext', ', '); Is ...
2
votes
3answers
1k views

What are the differences between custom post type and custom page templates?

What is the difference between custom taxonomies and page templates and custom post types? I think I understand that taxonomy is used to organize data. CPTs are used to give your data a different ...
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
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
316 views

Get terms that contain posts that in turn belong to other terms?

So I have custom taxonomy called "shape" and another one called "color". If I want to get the list terms under shape that contain posts that are also present in terms under color, how do I do that? ...
2
votes
3answers
2k views

How to Add Custom Fields to Custom Taxonomies in Wordpress CLEANLY

Saving extra fields that were added to a taxonomy. I want the most proper & efficient way of doing so. Where should I save the new fields? 2 possible solutions are to 1) Use the Wordpress ...
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
1answer
6k views

How to only list the child terms of a taxonomy and not their parents?

I'm creating an age select menu in the admin, populated from a taxonomy of age. The taxonomy is hierarchical as follows: 18-25 (parent, ID 183) 18 (child) 19 20 21 22 23 24 25 26-30 (parent, ID ...
2
votes
1answer
3k views

pre get posts changing the query

i need to change the posts in taxonomy.php page. I have a meta_key which i want to compare to meta value. But currently my code is not returning anything. I am sure i am missing something. Please let ...
2
votes
3answers
516 views

Custom post type / custom fields

I'm working on a client site and need the following: A custom post type called 'Agreements' On the Agreements edit panel, show a list of "Offices" checkboxes. Users can select multiple Offices per ...
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
2answers
663 views

WordPress taxonomy radio buttons

I am trying to change the checkboxes for the terms on the backend to radiobuttons. I found this topic: Altering the appearance of custom taxonomy inputs however wich helped me doing this. However, ...
2
votes
2answers
312 views

How to extract url from get_the_term_list?

How do you extract the url from : $url = get_the_term_list($post->ID, 'nom-origin') I have tried many things but i just don't get it. The only solution i got was this but i know it's just too ...
2
votes
1answer
453 views

Automatically create child pages when saving a (parent) page

I have a bit of a tricky one... I have a hierarchical Custom Post Type ('shows') that represents events. Is it possible for the user to create a new page (ie show), save the page and for Wordpress to ...
2
votes
1answer
978 views

Exclude from search all custom posts which are NOT in a taxonomy term

I have a custom post with a taxonomy associated to it. That taxonomy only has one term, and posts either belong to it or not, in a boolean fashion. On the search results, I wish to show the custom ...
2
votes
2answers
4k views

How to modify URL structures in custom post types and taxonomies or terms

I am well aware that there are several posts covering the topic of customizing the permalink URL structure of custom post types, custom taxonomies, and taxonomy terms. However, none of them are real ...
2
votes
1answer
2k views

get_the_category_list or get_the_tag_list for custom post types and taxonomies?

Basically I've setup a custom post type and taxonomy for a set type of posts and I'm creating a child theme from twentyeleven. When I use the default WP Posts and then I tag them and categorize them, ...
2
votes
2answers
1k views

Custom Taxonomy in plugin and template

I have a plugin that I am developing that is using custom post types and taxonomies. My question is this. How can I load the content/theme data from my plugin on to the page when the go to the custom ...
2
votes
1answer
1k views

get_terms does not return any results for my custom taxonomy?

If I go to wp-admin/edit-tags.php?taxonomy=location then I correctly see a list of terms. If I loop through: get_terms("category"); Then I correctly see several terms for the taxonomy of category. ...
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
3answers
4k views

get taxonomy name of current post

Hierarchical taxonomy of custom post type 'projects' > 'projects_category'. Two example 'projects_category' hierarchies would be: Big Corporates > 1st Company Name > A Post Title Small ...
2
votes
2answers
1k views

Show certain terms from custom taxonomy but exclude 'parent' terms?

I have a custom post type "mycustom_products" (hierarchical) that has custom taxonomies called 'categories' and 'tags' (as many other custom post types do). My custom category is called ...