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

5
votes
3answers
1k views

Custom Post Type and Taxonomy URL rewrite

I'm creating custom theme for my personal website using Wordpress 3.5.1. I have problem with the WordPress custom post type and taxonomy, here's the detail: custom post type name: articles taxonomy ...
5
votes
1answer
387 views

Programatically inserting terms doesn't update the Taxonomy admin UI

On one of the projects I'm working on, we have a feed which is being aggregated into WordPress. The feed items are being assigned ot a custom post type and a custom taxonomy. New terms are created ...
5
votes
3answers
1k views

Allowing specific users to only add posts using certain custom taxomy terms

I was searching through the forums, but I can only find slightly related issues. This is my problem: I'd like to assign some editors the capability to only add posts in a predefined term of a custom ...
5
votes
1answer
239 views

Edit tags page for hierarchical taxonomy doesn't show taxonomies at all depths

I created a taxonomy called "portfolio categories" for my portfolio custom post type. They're hierarchical and supposed to be behave like categories. when i'm editing a single portfolio post... i ...
5
votes
1answer
3k views

How can I rewrite URLs to pass taxonomy and post type values to the query?

So I have a site with about 6 custom post types.Three of these post types are attached to a single custom taxonomy. I would like to be able to list_cats in the sidebar and spit out a url like ...
4
votes
3answers
1k views

clients list using wordpress

I am using wordpress for my new website and i have list of clients(name and their logos). I am confused how to make those editable using wordpress? Html as follows... <ul> <li><img ...
4
votes
5answers
5k views

Custom taxonomy, get_the_terms, listing in order of parent > child

I have a hierarchical custom taxonomy which I can display using print_r(get_the_terms( $post->ID, 'taxonomic_rank' ));: Array ( [46] => stdClass Object ( [term_id] => ...
4
votes
5answers
5k views

Adding Custom Field to Taxonomy Input :Panel

I am looking to achieve something which I figured would be fairly simple to accomplish but it seems there are no real examples available to achieve my needs. Essentially I have a custom post type of ...
4
votes
2answers
1k views

How do I add a custom taxonomy as an option for menus under “Appearance” > “Menus”

I've created a custom taxonomy and I want to add it as an option for custom menus (under Appearance > Menus). How do I get it to show up there (see the illustration, I want it to show up where the red ...
4
votes
1answer
228 views

Large taxonomy (2000+ terms), causing WordPress to hang

I have a large taxonomy (and about to grow a lot larger) with several thousand terms in it. When I'm editing a post, there is now a significant hang when it goes to load the term list. Has anyone run ...
4
votes
3answers
233 views

Is there a (relatively easy!) way to create relationships between taxonomies WITHOUT needing a post as an intermediary

All of the answers I've found so far - here and elsewhere - involve creating a (custom) post - which would be 'overkill' because in this instance many of the 'terms' would only appear once. Specific ...
4
votes
3answers
11k views

How to Add Custom Fields to a Custom Post Type?

Ok, so I have registered a few custom post types and a few taxonomies. Now, for the life of me, I cannot figure out the code I need to add a Custom Field to my Custom Post Type. I need a drop down ...
4
votes
6answers
6k views

Custom order of terms for custom taxonomy in admin and website

I have a custom taxonomy registered for my custom post type. I need to make it possible for a user to specify the order in which the taxonomy terms should appear (something like menu order for pages). ...
4
votes
1answer
5k views

Custom Taxonomy not working with posts_per_page in new WP_query (pagination problem)

OK, so i'm messing with Custom Taxonomies for the second time and in both instances i've run into this problem where using the posts_per_page argument in either a query_posts or WP_query scenario.. ...
4
votes
4answers
5k views

How do I exclude a custom taxonomy from the post loop

Is there a simple or easy way to exclude all posts from a custom taxonomy in the loop? I've been looking high and low, and neither SE, SO or Google seem to have a straight answer. I know it can be ...
4
votes
1answer
519 views

Can I turn off write-in tags/taxonomies?

One of the big problems my site staff has had with tags is the overwhelming number of similar or duplicate tags, due to the write-in ability. I'm about to add new custom taxonomies to my site for ...
4
votes
2answers
3k views

RSS Feed for posts containing any term from a taxonomy

I imagine the answer to this will be related to this question I asked yesterday: Custom Taxonomy WP_Query for All Terms in a Taxonomy? I would like to output an RSS feed containing all posts that ...
4
votes
1answer
9k views

Rewriting a custom-post-type permalink with taxonomy term?

I'm trying to rewrite my url for a custom_post_type named wr_events with one of its custom_taxonomy terms from event_type add_action('init', 'wr_events'); function wr_events() { ...
4
votes
1answer
729 views

How to remove the tag cloud from custom taxonomy admin page?

When I register the taxonomy I have this which I thought might hide it: 'show_tagcloud' => false The default category page does not show a tag cloud so why does my custom taxonomy page, how do ...
4
votes
1answer
500 views

Two Custom Post Types, Share Two Taxonomies

I have two custom post types Hotels Things to do And I have two taxonomies Activities Regions So when a user sees a Hotel (custom post): the user can then see the region it's in what ...
4
votes
5answers
2k views

Remove slug in taxonomy url

Just wondering, how can remove slugs from some URLS. I'm using a custom post type called exhibitors, and some taxonomies to define those exhibitors (eg: featured-guests, publishers etc.): Right now ...
4
votes
1answer
2k views

Create page to handle form submission

I currently have some custom post types "shops" (actually more like pages than posts) and a custom taxonomy "products" linked to those post types. I'm attempting to create a form (via shortcode) that ...
4
votes
5answers
2k views

How to replicate some of Drupal Views functionality in WordPress?

I admit, I still think in Drupal. (In choosing between developing in WordPress and Drupal, I still tend to favor Drupal, because I haven't yet figured out a few things on the WordPress side.) Can ...
4
votes
1answer
319 views

When we register a custom taxonomy or post type, does the WP database modified at all?

When you use the register post type and register taxonomy functions in your functions.php, where do all that setting info get stored in regards to the CT's and CPT's you are registering? I'm talking ...
4
votes
1answer
599 views

Why does my custom taxonomy show a total count across all post types

I have created a custom taxonomy 'season' I have 3 custom post types which I want to use this taxonomy. These are Races Galleries Competitors Now, when I view the totals within the taxonomy ...
4
votes
1answer
2k views

restrict_manage_posts not working in 3.3.1

I have noticed my custom taxonomy filters no longer work in the 3.3.1 admin as per these methods: Adding a Taxonomy Filter to Admin List for a Custom Post Type? I also discovered that to filter a ...
4
votes
3answers
477 views

Best pratice to make taxonomy terms translatable without changing slugs?

I have one custom taxonomy with countries and states. I'd like to make these terms translatable but I'm not sure what would be the best way to achieve this. First of all, I don't want the slugs to ...
4
votes
1answer
252 views

Wordpress - Creating multiple versions of the same single-customtype.php depending on selected taxonomy categories

I have registered a custom post type 'Clients' and a taxonomy for this post type for categorizing posts. There are currently 3 categories for a Client: 'Logo Project', 'Video Project' and 'Web ...
4
votes
1answer
204 views

Return only the custom sub-term for custom post type, do not echo term-parent

I've made a custom function that retrieves the custom taxonomy term for a list of posts in a query, and echos both the name and the link. Additionally, it also excludes listing a term if I specify the ...
4
votes
1answer
4k views

Creating Photo Gallery System with Custom Post Type

I'm creating a movie blog using WordPress. I have Movie and Trailer custom post types and I want to add a Photo feature for this and I want to add a relationship between this photos and Movie CPT. ...
4
votes
1answer
258 views

Dynamic taxonomy in permalink made all other posts NOT FOUND?

I added my taxonomies in the permalink instead of the Custom Post Type's slug, and it works fine. I'd even say everything was working fine but changing the WP installation to Multisite broke all other ...
4
votes
1answer
479 views

A better Media LIbrary Experience

I've spent a good amount of time reading through everyone's suggestions about better file management with the Media Library -- and at the end of the day, I haven't come across any clear winners at the ...
4
votes
1answer
215 views

Get total number of comments from posts in a specific custom taxonomy

I’m having some difficulties trying to get total number of comments from posts within a specific custom taxonomy. The setup is as such: I’ve created a custom taxonomy for my posts, called “features”. ...
4
votes
1answer
1k views

Taxonomy menu with post count and multiple parents

I'm using WordPress 3.1.3 and trying to make a "product" menu with post count in each category. Like this: New Cars (4) BMW (2) Ford (1) Nissan (1) Used Cars (10) BMW (3) Ford (1) Nissan (6) ...
4
votes
2answers
664 views

Read-only taxonomy (user can assign term but can't create or edit existing terms)

I'm creating a custom taxonomy whose terms must remain fixed by all users. Once I've set up the starting set of terms, I want them to be immutable. I also don't want to clutter up the Admin UI with ...
4
votes
1answer
2k views

Sort Custom Post Type Archive by Taxonomy Term

What is the best method (as of 3.1 or 3.2 beta) to sort a custom post type archive by a given taxonomy term? I'm trying to make a staff page and I want to sort employees by department. So the ...
3
votes
4answers
8k views

How can I get only parent terms?

Is there any way to get only parent terms from custom taxonomy or category?
3
votes
4answers
9k views

get_the_term_list without links in 3.1

What function will display custom taxonomies associated with a post as text? I'm currently using get_the_term_list which works great for a singular page but not so much when using a taxonomy in the ...
3
votes
4answers
5k views

List all posts in custom post type by taxonomy

Is there a way I can list all posts in a specific custom post type and arrange them by the custom taxonomy term attached to them? For example; Taxonmy Term #1 Post Type Post Type Post Type Taxonomy ...
3
votes
1answer
4k views

How to assign multiple roles for capabilities array withini register_taxonomy function?

I am not sure how to add multiple capabilities to 'assign_terms' capability. My code is below, notice the capabilities array within the register_taxonomy function /* Registers taxonomies. */ ...
3
votes
4answers
2k views

limit selection of custom taxonomies to one?

I have a site with CPT (short for custom post type) "bagp_deals" and custom taxonomies "ba_locations" and "ba_cats" basically Its post type of "Deals" with "Location" and "Categories" as hierarchical ...
3
votes
3answers
3k views

Custom columns on edit-tags.php main page

I am trying to add custom columns to edit-tags.php for a custom taxonomy that I have created. This custom taxonomy is called equipment-types and it only applies to one custom post type called ...
3
votes
1answer
6k views

Custom Taxonomy specific to a Custom Post type

I want to create a custom taxonomy which behaves similar to the post type as a category behaves to a the default posts (on the grounds of /%category%/%postname%/ permalink structure) so that the posts ...
3
votes
2answers
2k views

Custom Taxonomy Tree view

I have been trying google for this, but not so easy to search for. I have a custom hierarchical taxonomy, something along the lines of: Chainsaws - Electric - Petrol - Other Grasscutters - Electric - ...
3
votes
3answers
9k views

get_posts assigned to a specific custom taxonomy term, and not the term's children

Say I have the following taxonomy terms: Term 1 Term 1.1 Term 1.2 Term 2 Term 2.1 How can I get only posts that are assigned to Term 1 and not include those that are assigned to Term 1.1 or ...
3
votes
1answer
954 views

How do you remove a Category-style (hierarchical) taxonomy metabox?

I was wondering if someone can help me with this. I'm currently following Shibashake's tutorial about creating custom meta-boxes that include taxonomy selection here: ...
3
votes
4answers
5k views

Counting Posts of a Given Post Type Having a Specific Taxonomy?

(Moderator's note: The original title was "How to know the number of custom type posts having a specific taxonomy") I'm stuck with the function wp_count_posts()! I created custom post types called ...
3
votes
1answer
2k views

Displaying the Name of the Queried Taxonomy Term on a Term Archive Page?

(Moderator's note: post was originally entitled "Taxonomy.php title") How can I display the "Posts classified under:" title for the taxonomy.php page? For example, this code is used in tag.php: ...
3
votes
2answers
4k views

Fixing Pagination with Custom Taxonomy Archive

I've been trying to set up a way to write posts in a series on my site. The idea is that each post can belong to a different series in a custom taxonomy. I've gotten just about everything set up the ...
3
votes
1answer
1k views

Exclude Specific Term from Search

It is possible to search for posts with a specific term by appending the URL with: ?&term=abc Is it possible to do the opposite and search excluding a specific term? Something like: ...