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
2answers
3k 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
10k 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" =&...
1
vote
1answer
2k views

Query posts by custom post type and custom taxonomy

I am writing a custom loop query to filter through a custom post type and custom taxonomy. I have replaced any variables with static values for the purpose of showing you what result I want. $args = ...
2
votes
2answers
788 views

Redirect to Post List by Taxonomy on User Selection of Taxonomy Dropdown?

(Moderator's note: The original title was "drop down taxonomy") I want to add a drop-down box filled with my custom taxonomies, so when someone selects any value, it redirects to ...
1
vote
1answer
837 views

How can you handle rewrite rules for custom post types with option to filter on custom taxonomy terms?

I have seen this question but can't wrap my head around actually filtering on the taxonomy as well.. Essentially what I'm looking for is an archives page for the taxonomy such as mysite.com/movies (...
3
votes
2answers
974 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 ...
2
votes
8answers
11k 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: "pizzerias"...
0
votes
1answer
302 views

custom taxonomies on pages

i need some help how can i display custom taxonomies on selected pages? i mean i have 3 custom taxonomies location,duration & courses i have created three pages where i want to display the terms ...
3
votes
2answers
3k views

Custom taxonomy listing page when no term set (all terms)

I've created a custom taxonomy "foo" with rewrite slug "foo" and query_var "foo". Say for example, I also have terms "bar" and "baz" in the "foo" taxonomy. At the moment, permalinks like /foo/bar ...
0
votes
1answer
880 views

Singular custom taxonomy label

I have a custom taxonomy called "Artists" which has the taxonomy singular name set to "Artist". If a post only has 1 artist I would like the label to be "Artist" instead of "Artists". How could I ...
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 ...
0
votes
3answers
955 views

can I prevent WP users (even admin) from deleting custom categories?

I am writing a plugin where I have custom taxonomy (category). I want to prevent any user from deleting some of custom categories. Is there any way how to do so. Let's say that category with ...
3
votes
2answers
2k 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 ...
0
votes
4answers
971 views

Trick to get custom post types to show up on a custom taxonomy page?

I've setup a custom post type and a custom taxonomy for that post type, but I'm having one problem - on the custom taxonomy permalink pages, the content of the custom post that should be there is not ...
9
votes
1answer
4k views

custom taxonomy and pages rewrite slug conflict gives 404

I'm using the Custom Post Type UI plugin to create my custom taxonomies. I have a portfolio that is made up of projects (custom post type) with 2 custom taxonomies of technologies and clients. The ...
2
votes
2answers
1k views

Get the latest taxonomy/category?

I'm designing a custom magazine theme, where categories are used for different sections, and I created a custom "edition" taxonomy. The editor will create a new term in that taxonomy for each new ...
1
vote
2answers
2k views

Taxonomy.php Not Showing Posts

I have the following code in my Functions.php file to create a custom taxonomy and post type. And I have created a series of posts within this post type and attached tags to them. add_action( 'init', ...
4
votes
2answers
4k 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 ...
0
votes
2answers
906 views

Best structure for entering recipes in a WordPress theme?

I'm working on building a recipe/meal planning site in WordPress. I need to have recipes indexable and sortable by the ingredients required, and I'm trying to figure out the best way of doing that. ...
4
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 ...
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?
1
vote
1answer
633 views

List taxonomies in a dropdown in theme's option panel

I want to show a dropdown in the option's panel for choosing a "featured product category" which is a custom taxonomy. I do this way: register_taxonomy("Catalogs", array("kmproduct"), array("...
5
votes
3answers
3k views

How to Make a Separate RSS Feed for Each Custom Post Type

How can I make a separate RSS feed for each custom post type? I had searched the net for it and found suggestions to do something like this: http://www.yoursite.com/feed/?post_type=book I tried ...
0
votes
2answers
945 views

Strip tags from a the terms() function

Trying to print my custom post type's taxonomy but without the link. Tried this, but doesn't seem to work, any suggestions? $text = the_terms($post->ID,'type','','',''); echo strip_tags($text); ...
3
votes
4answers
6k 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 '...
0
votes
3answers
1k views

Custom hierarchal taxonomy loses interface hierarchy when selecting parent & children

I have a custom hierarchical taxonomy that is called 'Categories', but serves a different area of the site than the default "Categories" taxonomy. The problem I'm having is with selecting children ...
0
votes
1answer
1k views

Custom Import with taxonomies

I'm looking to do a custom import from a custom cms to wordpress. Looking at the export/import files in wordpress, I can get match most of the structure. Though, it is missing the relationships for ...
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, ...
1
vote
2answers
1k views

Custom Taxonomies Incorrectly Counting Revisions?

(Moderator's note: The original title was "The count of my custom taxonomy is incorrect; it's counting revisions") Has anybody run into this before? I've added two custom taxonomies, and the count ...
3
votes
3answers
776 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 ...
1
vote
1answer
571 views

Category slug field missing with registered custom taxonomy

I have registered a new taxonomy term using the same code on two different sites. On one site (a vanilla install), If I go to my taxonomy term in the admin menu, I see a 'slug' option for the add ...
1
vote
1answer
95 views

Is there a way of storing posts and pages under the same hierarchy?

I'm working on a site which needs to have pages and posts sorted into the same categories. The pages have their own individual hierarchy structure. Is there a way to do this using a custom taxonomy?
3
votes
1answer
3k 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: ...
2
votes
2answers
4k 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 ...
5
votes
1answer
10k views

Get term SLUG by term ID

I have a hierarchical taxonomy called 'tarefa' I have to display all posts from a child taxonomy. I used get_term_children function function to verify if the taxonomy parent has children. If the ...
18
votes
6answers
22k views

Include custom taxonomy term in search

I have two custom taxonomies applied to two custom post types. the terms list on the sidebar just fine and will list all posts associated with it. However, if you search one of the terms in specific, ...
2
votes
1answer
6k 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 ...
0
votes
1answer
129 views

custom taxonomies label in hebrew

I'm trying to add a custom taxonomy. using the following code: function cities_custom_taxonomies() { register_taxonomy( 'city', // internal name = machine-readable taxonomy name ...
4
votes
5answers
3k 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
5answers
5k views

Add post classes for custom taxonomies to custom post type?

I was surprised to learn that custom taxonomies aren't added as body or post classes like categories and tags are. I'm sure this will be added in a future version of WordPress, but in the meantime I ...
6
votes
3answers
3k views

Getting the Intersection of Two Custom Taxonomy Terms for a Custom Post Type?

(Moderators note: Was originally titled "How to get_posts of a custom post type that is in two custom taxonomies?") I have a custom post type that has two taxonomies which are separate, one called "...
3
votes
1answer
808 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
569 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 ...
2
votes
1answer
459 views

Custom Taxonomy list: how to make “choose from most used” default to open, checklist

I'm doing a site for a wine importer. The wines have many custom taxonomies (type of wine, import/domestic, etc.) When adding a wine, the taxonomies show up in the right column but not the way I'd ...
12
votes
1answer
7k views

Saving Taxonomy Terms

I have an interesting problem which I hope someone can quickly answer. I have created my own metabox which, based on "MY METABOX CODE" (list below) is correctly displaying a dropdown list of all my ...
0
votes
1answer
360 views

Which file/template is in charge of taxonomies for custom post types?

I have set up a CPT, lets say "Movies". 'rewrite' => array( 'slug'=>'movies', 'with_front'=>FALSE ) I added a taxonomy "Genre". 'rewrite' => array( 'slug'=>'movies/genre', '...
4
votes
3answers
6k 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 ...
0
votes
2answers
85 views

Implementing Pillar Posts; Long Posts yet with Some Page-Like Handling?

One of the best blogging practices is that of writing "pillar posts" - featured content that's longer than a typical post and will likely generate a high volume of traffic to your site. Extensive ...
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 ...
2
votes
1answer
5k views

Custom Metabox with Taxonomy Dropdown - Saving Issue

My goal was simple --- to create a custom post type with a custom metabox with a simple drop down list of taxonomy terms instead of utilizing the tags or checkboxes. The reason was to ensure that the ...