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

0
votes
2answers
2k views

Custom Taxonomy with tax_query

So I've created a custom taxonomy type with a plugin (CMS Press) and now I'm trying to get all of the posts with the taxonomy terms in that taxonomy. My get_posts looks like this: $args = Array( ...
1
vote
2answers
3k views

Permalinks: custom post type -> custom taxonomy -> post

I am having trouble working with wordpress' rewrite rules, and could use some help. I have a custom post type called shows. All shows have a single custom taxonomy category show-category. A show ...
0
votes
1answer
50 views

Limiting post list by taxonomy

I currently have the following code pulling the 10 latest posts from a specific category, I would like to filter those posts to a certain custom taxonomy which I've set up called article type. What ...
0
votes
1answer
30 views

Custom post not appearing under custom taxonomy category

Hello again Wordpress Stack, I'm having trouble getting my custom post to display under a custom category. The post in question is this: register_post_type('feature_article', array( ...
0
votes
3answers
420 views

Get template part based on custom taxonomy term

I have a custom post type and I'm trying to call up different variations of the navigation based on the custom taxonomy slug. I've done this fairly easily with normal posts, like so: <?php ...
0
votes
1answer
48 views

Proper way to create taxonomy queries

How to build taxonomy queries dyniamically? I have this code for dynamically creating an array for color and price: $color = $_POST['color']; $price = $_POST['price']; if (!empty($color)) { ...
0
votes
1answer
443 views

get multiple values from $_GET from multiple checkboxes

I'm creating a form that loops through all the terms of a taxonomy. Multiple terms can be selected and they get passed in the url. I'm trying to get all the terms on another page but I'm only able to ...
0
votes
1answer
338 views

Alter post order on taxonomy template

I have a taxonomy template that is returning the correct posts (actually a custom post type) but I want to alter the order in which the posts are displayed. However, nothing I've tried will change the ...
0
votes
1answer
582 views

Custom Taxonomy + JQuery Tabs

I have created small widget on my home page which is using JQuery tabs plugin. So tabs nav is made of custom taxonomy titles and content below should be relevant to those tabs. So in other words every ...
0
votes
1answer
120 views

Query Custom Post by taxonomy multiple categories

I need to query posts using certain taxonomy category, but more than one category of the taxonomy, as I can with posts categories.. For example, I have the Portfolio custom posts, and the Project ...
1
vote
1answer
1k views

custom post type taxonomy “tag” archive : no post found

I've registered a custom post type "object" and registered the taxonomy "post_tag" so that these objects can be tagged. register_taxonomy_for_object_type('post_tag', 'object'); When I visit ...
0
votes
1answer
282 views

Taxonomy Archive: Display only one post per term from separate custom taxonomy

I am having trouble coming up with a solution for product catalog I am building using custom post types and 4 custom taxonomies. The product catalog is separated by "model", but each "model" can have ...
0
votes
2answers
446 views

Remove alphabetical order from wordpress categories

I am new to programming and WordPress. I am working on a project where I am using a custom taxonomy (tag). When I select my tag in the admin panel (post), it automatically gets arranged in ...
4
votes
3answers
416 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 ...
1
vote
1answer
931 views

Displaying custom-taxonomy-terms sorted by parent/child-hierarchy?

I have a custom post type with a custom taxonomy (to show some "best practice" examples on my website). On the single-post-page (single-bestpractice.php) I wanted to show all the terms (categories) ...
1
vote
1answer
973 views

Add .html extension to custom post type taxonomies

I want to have the .html extension in the custom post type taxonomy urls. My custom post type taxonomy it is called "product_cat". I will need something like: ...
0
votes
1answer
95 views

Display Taxonomy Terms in an option tag with value being the slug

I have a custom taxonomy filled with terms that I wish to display in a fashion such as below. <option value="[SLUG]">[TERM]</option> <option value="[SLUG]">[TERM]</option> ...
0
votes
0answers
23 views

displaying links if term is used

I want to display a list of terms for navigation and am using: <nav class="pagenav group"> <ul> <?php $terma = term_exists('group_a_teams', ...
0
votes
1answer
806 views

Add filter to Admin list for all custom post types by their custom taxonomies

I want to add filter on every Custom post type that have taxonomy associated with it. I have googled but found code for only for single post type or for single taxonomy.
0
votes
1answer
292 views

Search / Filter posts on Title/Content OR Tags

I need to make a custom query to look for posts (CPT) which match a certain keyword but it have to search posts in both the title, the content AND a custom taxonomy terms. I’ve tried with to queries ...
0
votes
1answer
707 views

Single.php for Custom Post Type > Taxonomy > Term

I have a custom post type - Films. It has a taxonomy of Film_cat, which in turn has two terms/categories - Term1 & Term2. For each single post within Term1, I would like to display a specific ...
0
votes
1answer
278 views

Check if value is a custom taxonomy category name

I'm needing to check a variable and if the slug doesn't match a custom taxonomy's category slug run a function. I can't wrap my head around what I would need to do in order to get the "categories" of ...
0
votes
0answers
309 views

Get single object term for custom taxonomy

I am trying to get the custom taxonomy term for a single custom post type and seem to be falling flat. I thought the most obvious answer was to use single_term_title() but have tried just about every ...
0
votes
1answer
297 views

how to use tax_query to apply both terms or one if one is empty

I'm having trouble with getting tax_query to act as a filter for posts. What I would like is to have it so it will display cpt's that have the terms of county and status but also work if terms are not ...
1
vote
2answers
653 views

tax_query not working on main query

I'm using the following code to do a tax_query and it doesn't seem to work anymore.. At some point it was working and for the life of me it wont, anymore. <?php global $pf_override; class ...
0
votes
1answer
92 views

How to show custom taxonomy child posts through shortcode in WordPress

My question: I have custom taxonomy in WP named Videos and childs of this taxonomy named music-videos and game-videos. In my WP theme this is shortcode which shows ALL video posts from main taxonomy ...
0
votes
1answer
108 views

taxonomy terms array not working

I'm working on a solution to filter a custom post type by multiple terms in multiple taxonomies. Here is my code: <?php $term = "peoria,adams"; ?> <div id="primary" ...
1
vote
1answer
395 views

Query for custom post type objects in a taxonomy and with a meta value

I want fetch all posts from the post type book in the custom taxonomy book_tags with the meta key lang and the meta value en. My code: <?php $args = array( 'post_type' => 'book', ...
0
votes
1answer
48 views

How to avoid foreach error WebDevStudio's WDS_Taxonomy_Radio taxonomy metabox class?

What is the correct way to use WebDevStudio's WDS_Taxonomy_Radio taxonomy metabox class? I have included the code in my functions.php file but I'm getting an error that reads: *Invalid argument ...
0
votes
1answer
586 views

Multiple Archive Pages for Custom Post Types AND Taxonomies

This is both a "how do I?" and "how should I?" question, as I'm thinking of ways to achieve my goal but they seem rather messy, so I'm hoping there's a neater way. Currently I have a custom post ...
0
votes
0answers
66 views

How to create filter for site

Good afternoon. Learning WordPress, I would like tips on how to make the filter on my website (not in the admin panel). For custom fields using magic fields 2 to display all the records I've just ...
1
vote
1answer
2k views

using $wpdb to get custom post type with term

I'm trying to get the title of the first custom post type with a specific term in a taxonomy. But I'm not great at SQL so therefor not great with using $wpdb. Here is my code: $posts = ...
0
votes
1answer
93 views

Variable Not Working Inside is_author() Array

I'm using a plugin (User Groups) to separate out users into, well, groups, and I need to figure out a way to create a conditional to check if an author is in a certain group. So, using get_term_by and ...
0
votes
1answer
229 views

Get posts by term slug only

What I'm looking to do is build a shortcode to that will display a list of posts based on the taxonomy slugs passed to it. But as far as I can tell, you can't use just a term's slug to pull posts in ...
0
votes
1answer
52 views

WordPress doesn't respect the template hierarchy?

My theme has a custom taxonomy template ("taxonomy-authors.php") but WordPress only serves this template file when a term associated with this taxonomy is called. e.g. example.com/cpt/authors/john-doe ...
1
vote
1answer
105 views

Invalid argument supplied in register_taxonomy $args->taxonomies

I have capabilities assigned in my register_post_type(). Then, I implemented taxonomies on my plugin. Where the $args in taxonomy are as follows: $args = array( 'label'=>'Partner Type', ...
0
votes
1answer
561 views

Create a custom taxonomy template that loops through child categories in term order?

We're building a site that sells Biking Gear We're using the Genesis Theme Framework, and developing a custom child theme. It has a Custom Post Type for Products, made with the "Custom Post Type UI ...
0
votes
1answer
133 views

How to display only taxonomies of custom post type in a page?

I have created recipe as a custom post and types as a taxonomy. In that taxonomy I have created vegetables and fruits as fields and I have 5 posts in each fields, but I need to display only vegetables ...
1
vote
1answer
170 views

How to show taxonomy meta on frontpage?

For a website I am developing I have come across the following challenge. I have made a custom taxonomy "blog" (associated with both the Post-post_type and the User-object_type). With the taxonomy ...
0
votes
1answer
48 views

How to output taxonomy term (incl. link to archive) on author.php?

I have used the excellent tutorial of Justin Tadlock on Custom user taxonomies in WordPress to add a Blog custom taxonomy to both my Posts post_type as well as the user object_type. In his tutorial ...
0
votes
0answers
106 views

Displaying or Hiding Metadata on Page from WP CPanel

I have a custom post type called "Celeb". This CPT contains two Taxonomy terms as "Men" and "Women".Each Post has two metadata as "Name" and "Age". Now I would Like to add a "Visibility" checkbox ...
0
votes
2answers
32 views

Sorting custom post types by taxonomy (So close)

I have a custom post type called 'requests' that has a custom taxonomy 'request-categories'. I've created a template with a modified loop that allows me to view my custom post type in a certain ...
0
votes
1answer
156 views

Get terms that don't belong to current post with a shortcode

Is it possible to retrieve all the terms of a custom hierarchical taxonomy that do not belong to the current post? Perhaps by using wp_get_post_terms()? I recently stumbled upon this unusual need. ...
1
vote
1answer
25 views

How to dropdown custom taxonomy?

To make a dropdown list from categories I can use wp_dropdown_categories function. http://codex.wordpress.org/Function_Reference/wp_dropdown_categories But how can I do the same thing but for my ...
1
vote
1answer
676 views

Get post type from taxonomy or category page

This might be somewhat backward, but how can one get the post type being displayed on an archive page? Alternatively, how can one get the post type associated with a given taxonomy?
0
votes
1answer
69 views

Custom taxonomy page not working

I've created a custom taxonomy 'animal-species' that I want to filter out my 'animals' custom post type. The idea is that a user can go to the main animals page and filter them out by cats, dogs etc. ...
0
votes
1answer
2k views

conditional statement for custom taxonomy

Struggling to find out how to achieve this, if it is at all possible. The equivalent of is_category but for a custom taxonomy I've set up. The taxonomy category if which being Taxonomy Name with 2 ...
0
votes
1answer
75 views

Featured Images for Tags?

Is it possible to somehow create featured images for tags or custom taxonomies. For the sake of explanation, I will give an example of the possible functionality. Say I am running a website that ...
1
vote
2answers
175 views

echo current taxonomy id for this loop?

I have this query to get posts and show like this: Custom taxonomy 1 <div ID1> |-- post 1 |-- post 2 </div> Custom taxonomy 2 <div ID2> |-- post 3 |-- post 4 </div> ...
0
votes
1answer
530 views

Get all terms, including unchecked, or get the terms outside loop

I'm trying to return all the terms for a particular taxonomy (so eventually I can create a link for it). At the moment, this function I've written only returns terms for the current post. How can I ...