A taxonomy is a generic "category" used to organize posts and custom post types
3
votes
1answer
134 views
How to set a Preset category for custom post types?
For Posts you can have a preset category where all Posts fall if not specified otherwise (settings → writing).
Can this be done for custom post types that have a custom taxonomy?
The ...
3
votes
1answer
95 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( ...
3
votes
1answer
595 views
How can you make permalink work for custom post type and taxonomy?
I have spent days now trying to figure this out, StackOverflow is my last resort. All I want is the following:
...
3
votes
1answer
560 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
2answers
246 views
Add additional data to a specific taxonomy term when used in a post
If I'm using a custom post type for a Movie or a TV show episode, I may use a taxonomy for "actors" and assign all the actors related to the work to it, but I'm not sure how, besides of that, I can ...
3
votes
2answers
88 views
Taxonomy + post_type
I'm quite lost with taxonomies and custom post type.
I have a taxonomy -> auteur
I have custom_post-type -> citation (quote in french).
I just want list all citations (quote) from an auteur ...
3
votes
1answer
42 views
Custom taxonomy: same terms, but for different years
I'm building a directory of people in a boarding house. What I'd like to do, is to be able to assign the following metadata to each person:
Room number
Parking space number
Leadership positions
...
3
votes
0answers
175 views
Best way to programmatically link to multiple categories (union/intersection)
This question assumes that you know about the various complex taxonomy queries available from the WP_Query API. I know about tax_query as well as about things like category__and, which allow you to ...
3
votes
1answer
139 views
Custom taxonomy on permalink
I have a long time problem and look forward for your help.
I have a custom taxonomy of "city" (it is no hierarchical like tags).
I just would like my URLs to look like this:
...
2
votes
2answers
884 views
Fast way to add countries as a custom taxonomy term?
Is there a quick way to add a list of countries as terms to a custom taxonomy called "Country"?
Is there an existing import file, SQL script ect...
I don't want to be there all day manually adding ...
2
votes
1answer
1k 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
3answers
311 views
Child Terms not Displaying on the Taxonomy Term Admin Screen
I am experiencing an issue where terms with a parent are not being displayed in the category admin screen. The screen gives the total number of terms that should be there (i.e., 32), but only displays ...
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
1answer
6k views
Get Posts by Custom Post Type ,Taxonomy, and Term
Ok, so i have a Custom Post Type called "Services". This custom post type has a taxonomy called "Areas" and there's 5 terms in that taxonomy.
Let's say I have 10 posts on "Services" and there's 5 ...
2
votes
1answer
503 views
How to group meta boxes on the post edit page
I suspect that this is not possible right now, but oh well.. I'll ask, maybe one of you has some intersting thoughts to share.
So let's say we have the following taxonomy terms meta-boxes on our post ...
2
votes
1answer
859 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?
2
votes
2answers
81 views
deleting terms programmatically
I already checked out this page; http://codex.wordpress.org/Function_Reference/wp_delete_term
It does not say what happens to the posts that may have been associated with this action. Hence my ...
2
votes
1answer
1k views
Get the first Category / Term only in single-custom-post.php
found close stuff but none that exactly answers my question.. so..
How do i get the only the first taxomony (category) of a custom post type...
i can get all - no problem.. this what i am using to ...
2
votes
2answers
815 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 ...
2
votes
3answers
3k views
How to add a default item to a custom taxonomy?
Wordpress default taxonomy (Categories) has the item Uncategorized by default. How to add a default item to a new custom taxonomy?
functions.php:
// === CUSTOM TAXONOMIES === //
function ...
2
votes
1answer
710 views
Create terms when registering taxonomy?
I'm registering taxonomy in my functions.php file:
register_taxonomy("our_gallery_types", array("gallery"), array("hierarchical" => true, "label" => "Categories", "singular_label" => ...
2
votes
1answer
43 views
Filter WordPress posts by between parameter
How to filter WordPress posts by a taxonomy and between parameter? Consider a mobile website with "memory size" taxonomy, I need to show posts that have more than 256 mb memory and less than 768 mb.
...
2
votes
1answer
298 views
Create an archive page for custom taxonomies
I switched my site from categories to taxonomies for my custom post but I am having trouble getting it to work the same way. For categories I could have templates named something like ...
2
votes
2answers
537 views
get term by id without taxonomy
Can I get the term by it's id without knowing to whish taxonomy it belongs?
I have a meta field that stores term ids, but doesn't store the taxonomy. However, all the get_term function have taxonomy ...
2
votes
1answer
174 views
Create Child Taxonomies
Is there a way to use the register_taxonomy function to create child taxonomies to a specific parent taxonomy in a hierarchical structure?
For example: Let's say I'm creating a theme for selling cars ...
2
votes
3answers
1k views
How to get the parent's taxonomy?
I have 2 customs post type : "Artist" and "Concert",
the "Concert" custom post type is the child of the "Artist" custom post type,
the "Artist" custom post type has a "genre" taxonomy.
What I'm ...
2
votes
1answer
942 views
Widget to display custom taxonomy tag cloud
How to alter the default widget to display a tag cloud of a custom taxonomy?
2
votes
2answers
388 views
Multiple users – only allow them to manage their own terms for custom taxonomy when logged in
How can I allow each user to manage their own terms for a custom taxonomy when logged in on edit-tags page? user will only show & manage terms that only created by him not others for a custom ...
2
votes
2answers
3k 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 ...
2
votes
1answer
590 views
How to add automatically keyword to taxonomies when a post published, and assign them to the post
How to add automatically keyword to taxonomies when a post published, and assign them to the post
for example i have in my post edition, a custom meta box, when you complete this input, a function ...
2
votes
1answer
76 views
Wordpress renames slug of tags used in multiple taxonomies?
I've noticed Wordpress renames the slug of identical tags used across multiple taxonomies, is there an easy way to change this behavior?
Let's say I create a tag called Nintendo under the publisher ...
2
votes
1answer
687 views
Show WordPress Custom Taxonomy Items Based On a Selected Item From Another Custom Taxonomy
Let me explain the problem I am dealing with:
I have 2 custom taxonomies. One is named "thestate" and the other one is named "thetown".
In "thestate" I have listed all the states in the U.S.
In ...
2
votes
2answers
316 views
wp_set_object_terms() — prevent overwrite?
From my understanding (and before trial and error),
wp_set_object_terms( 'post_id', 'add_this_term', 'in_this_taxonomy');
But from the Codex, apparently adding the term will overwrite any other ...
2
votes
1answer
271 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, ...
2
votes
1answer
404 views
Better way to enforce category hierarchy in post_categories_metabox?
The objective is to ensure that when editing a post, the metabox that lists a hierarchical taxonomy doesn't reorder itself upon Update to put checked items on top.
Right now, edit-form-advanced.php ...
2
votes
1answer
552 views
orphaned taxonomy terms remove by sql query
I have 3 custom post types each of these CPT's have posts that are set to auto delete via a given time scale by cron jobs, thing is when they are deleted it leaves behind orphaned taxonomy terms in ...
2
votes
1answer
280 views
How do I display custom post types through a common taxonomy?
I have posts and I have recipes. Recipes is a custom post type. Recipes make use of the category taxonomy and a newly added recipe has been categorized under beer. When I browse the listing page for ...
2
votes
1answer
976 views
get_categories for custom post type and filter by custom taxonomy (brand) and list child categories of a defined category
Thanks to @MikeSchinkel I have the following code:
$term = get_query_var('term');
$brand = get_term_by('slug',$term,'brands'); // This here just to illustrate
$categories = ...
2
votes
2answers
2k views
Querying Multiple Custom Taxonomy Terms
I created a new taxonomy called 'country' and have two terms items inside it: 'USA' and 'Canada'. How do I go about querying this info? I have a filter page with two checkboxes:
<input ...
2
votes
3answers
544 views
Archive pages for posts based on their taxonomy?
Is it possible to display archive pages of posts based on their taxonomies, and an archive page of a term in that taxonomy??
For example, i have a site about beauty products, and i write a product ...
2
votes
1answer
51 views
Category page only displaying the posts from a custom type
Situation
I have two cpt:
Projects
Works
In these two CPT I share the same taxonomy 'Category', and the same terms:
Architecture
Landscape
Interior Design
I have URLs like
...
2
votes
1answer
151 views
New categories are now going to 404s
I have a WPMU site with hundreds of blogs on it. We are on 3.4.2 and this is the first time I'm seeing this issue within a few of my sites.
Basically, what happens is that I'll create a new category ...
2
votes
1answer
150 views
Taxonomy terms with edit/filter link in wp-admin, in the list of custom posts
I'm using get_the_term_list and manage_posts_custom_column to display the terms of a custom taxonomy in the list of custom posts, in the WordPress Admin.
add_action( ...
2
votes
1answer
163 views
How to update taxonomy custom field with wp_update_term()?
I'm using Clipper, a coupon theme developed by AppThemes.com, and I'm trying to programmatically import coupons.
The problem I'm having is each coupon needs to have a "store" added when it's ...
2
votes
1answer
81 views
Remove custom posts that match taxonomy value
I have a custom post type 'listings' and within that a taxonomy called 'status' where the posts are either 'standard' or 'premium'.
What SQL query (or other method), could I use to delete all custom ...
2
votes
2answers
519 views
Importing data from spreadsheet into wordpress DB, along with custom taxonomies and their terms
I am importing a large DB from an Excel spreadsheet into a wordpress DB. I was going to do it manually by creating a new table but decided to import it into the existing wordpress framework as it will ...
2
votes
1answer
147 views
Using Custom Posts with Metaboxes and Drop-downs
When using Custom Posts and adding a Metabox, I was wondering how I could add a drop-down menu that would populate data that was added by the user.
For example I want to be able to select a 'source' ...
2
votes
1answer
385 views
How can I set up a category “overview” page?
I know I can use the Template Hierarchy to set up custom theme pages for terms inside a category, like these:
mysite.com/category/tech/ // category-tech.php
mysite.com/category/blog/ ...
2
votes
1answer
104 views
How to add terms to a post depending on its title?
I want to add all posts with keyword "Dog Training" in the post title to a specific category.
Reason: If you enter something into WordPress search it's not an exact match. Previous WordPress search ...
2
votes
1answer
1k 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 ...
