Since WordPress 2.3, plugin and theme authors have had the ability to create custom taxonomies-- essentially specialized "categories"-- to help organize information.
4
votes
1answer
1k 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
1answer
176 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
178 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
124 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
2k 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
232 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
165 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
284 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
132 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
423 views
custom post type and custom taxonomy permalink
I have 2 pages.
/client-a/
/client-b/
I have a custom post type, called "case":
$case_type = array(
'labels' => $case_labels,
'public' => true,
'publicly_queryable' => true,
...
4
votes
1answer
920 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
1answer
1k 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
5answers
5k views
Display all posts in a custom post type, grouped by a custom taxonomy
I’m working on a member page where I use a custom post type with a custom taxonomy. My custom post type is called “member” and my custom taxonomy is called “member_groups”.
I want to list all the ...
3
votes
2answers
487 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 ...
3
votes
4answers
2k 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] => ...
3
votes
3answers
2k 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
5answers
3k 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). ...
3
votes
1answer
733 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
2answers
2k 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
559 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:
...
3
votes
1answer
1k views
whats the difference between term_id and term_taxonomy_id
the title says it all. At the moment in my custom taxonomies I'm getting the terms using the term id and taxonomy name.
Thought this question would've been asked before but can't find it anywhere! So ...
3
votes
2answers
678 views
pre_get_posts OR relation between taxonomy and author
I have a custom taxonomy called coauthor. On the edit.php screen, I am trying filter and only show posts authored by the current user OR posts coauthored by the current user. I can get the posts ...
3
votes
2answers
632 views
TV Show database - Best way for structuring it?
I want to make a TV Show database in Wordpress that has this URL format:
/tvshows/friends/01/12/
/tvshows/ would list all series
/tvshows/friends/ would list all the seasons available for Friends ...
3
votes
1answer
464 views
Inserting Taxonomy Terms During a Plugin Activation?
I've been trying various ways of doing this. Basically, I've been trying to make it so that a plugin of mine populates the terms of a taxonomy only once during the plugin's activation. The term ...
3
votes
3answers
435 views
Custom permalinks
We have a custom type music.
/music/
/music/post-name/
Also, we have a tag-like taxonomy genres. Its urls are:
/music-genres/genre-name/
I'm trying to make urls like:
/music/
/music/post-name/
...
3
votes
4answers
3k 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
416 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 ...
3
votes
5answers
381 views
How to do a custom bookmarks post type?
Let me first explain what I am wanting to do...
I am wanting to add all my hundreds of website bookmarks that I have now in my browser, into wordpress for the following reasons.
Can search my ...
3
votes
1answer
2k views
Custom Taxonomy as Dropdown in admin
I’ve created a custom post type (called Sponsors) with an additional taxonomy connected to it, called “Type”.
Everything is essentially working perfectly but I would very much like to have my ...
3
votes
1answer
1k views
URL rewrite rules for multiple taxonomies query
I'm trying to create some pretty URLs for links querying multiple taxonomies. I'm using the "Taxonomy drill-down" plugin, although the main usage is now integrated @ the core it still has some helpful ...
3
votes
4answers
3k 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 ...
3
votes
2answers
734 views
Associating an “author” with a custom taxonomy
I have a custom role, "Ministry Representative", which is able to log in and create and manage their own "Opportunities" and "Events", which is each a custom post type.
On the front end of the site, ...
3
votes
1answer
2k 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 ...
3
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 ...
3
votes
2answers
150 views
Understanding Permalinks on Custom Post Types
I hate to try to reinvent the wheel here, but none of the suggested post seem to work in answering my question. I am building a system for our 30 Under 30 honorees, which is basically setup as a ...
3
votes
1answer
273 views
Determine if Term has Grandparent/Great-Grandparent
I have a custom taxonomy (hierarchical) for which I'm outputting the results. For example's purpose:
--Drinks
----Tequila
------Reposado
------Blanco
----Beer & Wine
------Beer
------Wine
...
3
votes
2answers
722 views
How To Change Custom Taxonomy To Radio Buttons
I've actually found a solution to my problem here:
Altering the appearance of custom taxonomy inputs but I wanted to ask a followup question, and it seems I couldn't ask in that thread.
Here's the ...
3
votes
1answer
171 views
Custom Taxonomy-specific JavaScript
I'm looking to add some scripts and styles to particular taxonomy page. For example, I want to have a banner rotator only appear for posts that fall under the "issue" custom taxonomy. I've tried ...
3
votes
2answers
499 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 ...
3
votes
3answers
568 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 ...
3
votes
3answers
99 views
Custom Taxonomy Relationship (ex: plant classification)
I'm trying to implement plant classification as a custom taxonomy for a custom post type.
For now, plant classification should be on three levels: Family, Genus, Species.
As I see it, there are two ...
3
votes
1answer
97 views
Custom taxonomy only showing top level terms in admin?
I have a hierarchical custom taxonomy that I add terms to programatically using the following code in a loop:
-- SNIP --
$args = array(
'description'=> '',
'slug' => ...
3
votes
1answer
633 views
Custom Taxonomy and Tax_Query
I've been having a lot of trouble getting a WP_Query running with a tax_query on my custom taxonomy.
I'm 99.9% sure that my register_taxonomy is correct, as I'm able to tag posts with the right term, ...
3
votes
2answers
491 views
Custom metabox for menu administration page?
I've been googleing around but failed to find a solution for my need.
I'm using wordpress 3.0 and TwentyEleven theme as default pack.
In the Dashboard -> appearance->menus that allow user can ...
3
votes
1answer
302 views
Integrating an interactive map into a Wordpress custom post type
A while ago I created an interactive map for my website using Ian Lunn's BBC News Map, and custom fields to set the html for each area. It looks like this:-
I'm now trying to integrate this with a ...
3
votes
1answer
246 views
Custom Fields and performance
My question : how many custom fields or even taxonomies WordPress can handle without affecting performance?
The reason I ask, is because I started building a custom theme and I might need to have ...
3
votes
1answer
146 views
Admin to user notices - best practices?
I am trying to replicate specific functionality from my vb forums in my wordpress install. Specifically I can create 'user notices' that are displayed on the front end of the website.
Basically I can ...
3
votes
2answers
530 views
Nice URLs for a Custom Post Type List with a Shared Custom Taxonomy?
(Moderator's note: Title was "Convert into nice URL a shared custom taxonomy URL with a query string value")
I have a custom taxonomy template: taxonomy-country.php used by two (2) Custom Post Types: ...
3
votes
2answers
1k views
Custom post type taxonomies URL rewrite
What I want to achieve is an online listing catalog with a URL like this:
www.example.com/drawing-tools/brand/type/material/color/
In this example, I have a custom post type named "drawing-tools" ...
3
votes
1answer
528 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 ...