A taxonomy is a generic "category" used to organize posts and custom post types

learn more… | top users | synonyms

5
votes
3answers
645 views

Taxonomy term in permalink

I have a big problem. I have been banging my head on this all day long. It seems to be a stupid easy question. Possibly also with a stupid easy answer. But I can't seem to find it. What I want is ...
0
votes
3answers
692 views

how can i display taxonomy instead of category on my web page?

I want to display taxonomies instead of categories on the homepage of my blog. What can I do to achieve this?
0
votes
1answer
52 views

Need help deciding on a taxonomy

I'm working on a project that mimics a product Catalog, all products belong to a Collection and they all have a Type and Attributes. For instance, a shirt belongs to the Apparel Collection, so I ...
3
votes
1answer
630 views

Control term order on a per-post basis

I have a taxonomy in which term order matters, but varies from post to post. So I want to be able to set the order that terms are displayed in on a per-post basis: My first post | Tagged: Apples, ...
3
votes
1answer
143 views

List taxonomies with thumbnails

I've added an extra field to a taxonomy called "albums" via this function: add_action( 'albums_edit_form_fields', 'albums_taxonomy_edit_meta_field', 10, 2 ); function save_taxonomy_custom_meta( ...
0
votes
2answers
322 views

Related terms - Terms that feature in post of current term

Not sure how hard this is but i'll try and explain it as simply as possible. I have a custom post type called: "Movies" with an taxonomy term called "Actor" For example purposes suppose were on the ...
0
votes
2answers
541 views

Taxonomy template shows only 10 posts

So I'm a little confused with this one. A blog I recently set up makes plenty of use of custom post types and custom taxonomies. In the reading settings the blog posts to show is at 100 but I can ...
0
votes
1answer
184 views

Replacing a placeholder term with a session variable value in taxonomy filter

I have in my themes some code which will set a session variable. For the sake of example, it's a geolocation routine which will set to either USA, UK or ROW, resulting in: $_SESSION['region'] = ...
2
votes
2answers
2k views

Group Custom post type in a page by its taxomony tag

I hope i can write a clear question since i got confused trying to solve this... I got a custom post type... that custom post type has taxomony (category like) and i want to return a structure like ...
0
votes
2answers
482 views

child_of not working in wp_dropdown_categories

I have wp_dropdown_categories working without setting child_of. Once I set child_of, all categories disappear. Here's my code, what should I do to enable child_of? function dropdown(){ ...
0
votes
3answers
766 views

Terms not appearing in wp_dropdown_categories

I am trying to use wp_dropdown_categories at front end. I got the dropdown box with default "uncategorized", the rest of the category is not there. function cats_dropdown(){ require_once(ABSPATH ...
0
votes
1answer
195 views

Description of a sub-taxonomy

I am using this code to display description of a taxonomy. <?php $my_taxonomy = 'institute'; $terms = wp_get_post_terms( $post->ID, $my_taxonomy ); echo term_description($terms[0]->term_id, ...
0
votes
2answers
1k views

Why is taxonmy-[taxonomyname].php not working?

I've registered a couple of custom taxonomies to go with a couple of custom post types but I'm having some trouble getting a template file to work. I've tried taxonomy.php, taxonomy-[termname].php, ...
0
votes
1answer
976 views

Alphabetically sort a taxonomy.php template by post title

Simply put, is it possible to sort a taxonomy.php template via the same methods you can with something like wp_query so that the archive shows all posts in an ascending order alphabetically by title? ...
1
vote
1answer
489 views

How do I list the pages of a custom taxonomy?

Grouping pages/posts into taxonomies is great IF you can list the pages under each category. For instance, I have set a taxonomy as 'WordPress Reference'. Then I have a "category" (I think that's ...
3
votes
1answer
8k views

How can I add the featured image functionality to a custom taxonomy?

I would like to be able to use the 'featured image' functionality, found on post types, for a custom taxonomy. I have a taxonomy called 'collections' and I would like each collection to have a ...
1
vote
1answer
254 views

Changing stylesheet depending on custom taxonomy terms

My client would like the background & header colors to switch depending on terms within the custom taxonomy 'Grades'. These terms are kindergarten, first grade, second grade, etc... (all ...
0
votes
2answers
166 views

How to display posts from two taxonomies?

I have site with rankings of doctors. Medical specialization and localization where doctors live is stored as a taxonomy. For example: city -> New York, London, Paris specialization -> surgeon, ...
0
votes
1answer
332 views

Bug using wp_insert_term with switch_to_blog

I'm running a network of about 80 sites using WP multisite 3.2. I'm experiencing irregularities using switch_to_blog whith wp_insert_term. To test this I have disabled all plugins, and am testing on ...
0
votes
1answer
286 views

Taxonomies not showing in WP Dashboard Right Now widget

For some time I've been using this code snippet adding both custom post types and custom taxonomies to the WP Dashboard Right Now widget: function dashboard_right_now_content_table_end() { $args ...
0
votes
1answer
1k views

Dynamic filtering of posts with custom taxonomies

I am currently trying to make a business directory where the users can filter the results by: Type of service County I am using a custom post type for the business directory, and I have created 2 ...
6
votes
5answers
4k views

How to export and import taxonomies (category, tag and/or custom taxonomy) and their terms

I want to export all Wordpress categories (no posts, just categories) from one blog to another. How can I do that ?
1
vote
1answer
285 views

How to output the taxonomy term name in a widget

I have a taxonomy for example "country" and I want to simply display the term in the side bar eg. New Zealand. There is only one possible taxonomy per post so I don't need to create a list or ...
3
votes
1answer
3k views

How do I dynamically populate wp_nav_menu from a custom taxonomy?

I know this question has been asked in different forms. But as far as I can tell from searching Google and SE/WP it's never been satisfactorily answered. Let's say I have a taxonomy clubs and a ...
0
votes
1answer
3k views

How to get posts using category slug in ClassiPress?

I'm using the ClassiPress theme as a base for a new theme. If you have worked with classipress, you should know that classipress handles its own category using the taxonomy ad_cat. That said, I have a ...
0
votes
1answer
197 views

Custom Taxonomy link out the loop

how can i get Custom taxonomy URL by taxonomy ID outside the loop like get_category_link();
7
votes
2answers
514 views

Why does get_term() require taxonomy? Are term_ids not unique?

A related WPSE question asks how to get the term by specifying ID only, without specifying taxonomy. My question is more philosophical. Generally, stuff in WP core is there for a reason. I'm trying to ...
1
vote
4answers
4k views

Using Taxonomy Image code with my get_categories code

I'm using Taxonomy Images to associate images with categories. I'm using the following code, one is to display the categories, the other to display the images. Here is the code that displays my ...
1
vote
1answer
2k views

Set a cookie in WordPress, using a select form and Jquery

Hi Guys and thank you in advance for giving me some attention with this. I have this code in wordpress that I just can't get right. I have the US states in a drop-down form. When the user chooses an ...
1
vote
2answers
1k views

How do I search inside specific taxonomies in Wordpress

I am trying to search for posts in specific taxonomies but any time I search, I get results from all the other pages instead of Wordpress searching within the selected category in the taxonomy. I ...
0
votes
2answers
2k views

Taxonomy count per Post type

Below is the code i use to output the post tag (taxonomy) count/number. I want to be able to split the count based on post type that the taxonomy features in (rather than the total number). So i ...
0
votes
1answer
96 views

Taxonomy template for all taxonomies attached to certain post type

For instance, I have a product post type and I would like all the taxonomies associated w/ this type, such as size, color, material etc to display using the same template without having to 1. create a ...
0
votes
1answer
84 views

Using taxonomies to handle layout?

I need some tools to handle page/post layout in some specific cases -- for example, some post should render post thumbnail on the right side (not left), some "related post" item should not be linked ...
0
votes
2answers
140 views

How To Use Custom Tax of a Post Type

I've defined a custom post type. I've defined a custom taxonomy for this custom post type. I've populated the custom taxonomy. How do I make the list of custom taxonomy values show up in the admin ...
0
votes
2answers
182 views

Loop problem - Taxonomy

I think that I have a problem with the loop on my taxonomy page. On any part of the code (specially on the sidebar) that I need the permalink, it always return the link of the first item of the ...
1
vote
1answer
198 views

Can taxonomies of custom post types be used with category actions?

I need to create a hook after the creation, edit and deletion of a taxonomy organizing a custom post type I have. I've noticed though that I can't use the following actions with those taxonomies: ...
2
votes
2answers
317 views

Custom Post Type and Taxonomy combination

Is it possible to create a permalink/template structure like this: www.example.com/attractions <-- post type archive www.example.com/attractions/museums <-- taxonomy ...
0
votes
1answer
188 views

Best way to categorize/populate a magazine style layout

I'm taking the reigns of an existing Wordpress site that has a magazine-style home page with sections for featured articles, upcoming events, different categories of articles, etc. Currently, these ...
1
vote
1answer
147 views

Limiting the posts on the homepage to one taxonomy? [closed]

I've currently got this code on my homepage to display one random post from the Work section on my website - this is a custom post type utilising taxonomies - not blog posts: <?php ...
2
votes
2answers
383 views

Organising Taxonomy categories

I have the following code in my sidebar to list all the taxonomy categories. <div class="left"> <h1>Categories</h1> <?php //list terms in a given taxonomy ...
6
votes
4answers
3k views

How do I append multiple taxonomies to the URL?

Multiple taxonomies in URL How does one append multiple taxonomies to the URL having the following: Post Type: products Taxonomy: product_type Taxonomy: product_brand Adding new ...
1
vote
1answer
435 views

How do I query a taxonomy term range

NOTE: The links will work If you copy & paste them. (I'm a newbie so I am not allowed to add to many links to the question) I have a few taxonomies that I would like to query a range from, for ...
0
votes
1answer
1k views

Displaying taxonomies as category links within sidebar and creating pages for these

I've created a custom post type called 'work' for a portfolio section on the site I am working on at the moment. I have also registered the taxonomy 'workcategories' so that I can assign different ...
0
votes
1answer
167 views

How to output all taxonomy links from a custom post type in a menu?

I made a custom post type called Product. And a taxonomy with the name 'product-category'. These taxonomies have pages where we show a list of the products that have that taxonomy. Now my question is ...
3
votes
1answer
1k views

Wordpress custom taxonomy description for each post?

In a Wordpress blog, I'd like to put the term description of a specific custom taxonomy in the footer of each article. Is this possible? I've tried <?php term_description( $term_id, $taxonomy ) ...
0
votes
1answer
309 views

What is the current page's Taxonomy?

I need to be able to switch between the current page taxonomy so I can load in the appropriate menu: $current_tax = 'need to get this from somewhere'; switch ($current_tax) { case 'tax1': ...
0
votes
2answers
2k views

Loop custom post type by taxonomy (Category)

I created a custom post type in my function.php of the theme and some a taxonomy for them. I added 2 categories in my taxonomy (first, second) and added some post in my new custom post. I want to ...
2
votes
0answers
686 views

Taxonomy/category hierarchy lost when editing posts [closed]

When editing a post the tree structure of the taxonomy seems to be lost, ie; if I set the following when adding a post: [x] Top tier category 1 - [x] Cat 1 sub-category 1 - [ ] Cat 1 sub-category 2 - ...
0
votes
2answers
539 views

Query all posts under one taxonomy? Why is my code not working?

I'm trying to show all the posts associated with a Taxonomy (not a term) but it seems to not work. <?php $args = array( 'post_type' => 'projects', 'tax_query' => array( ...
0
votes
1answer
86 views

How to define %category% for custom taxonomies?

So when you put %category% in the permalink structure that tag will be replaced with the path from the root category to the furthest subcategory, where, when placed in multiple categories, it will ...