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

1
vote
3answers
6k views

Get main parent categories for a product

Can someone please help me, I'm looking for a way to find the main parent product category of a WooCommerce product? Say, the product is marked under Gadgets, but the main parent of them all is ...
0
votes
1answer
251 views

Display a random customposttype2 excerpt in single-custompostype1.php that shares same taxonomy

OK - Looked everywhere for this one. Details: Custom Post Type #1 = 'product' > registered taxonomy 'productranges' Custom Post Type #2 = 'testimonial' > registered taxonomy 'testimonials' Both ...
1
vote
3answers
339 views

Saving custom fields to a custom taxonomy

I am trying to create a custom field for a custom taxonomy. update_post_meta works great with posts. Taxonomies are not posts so this won't work. <?php update_post_meta($post_id, $meta_key, ...
2
votes
3answers
2k views

How to Add Custom Fields to Custom Taxonomies in Wordpress CLEANLY

Saving extra fields that were added to a taxonomy. I want the most proper & efficient way of doing so. Where should I save the new fields? 2 possible solutions are to 1) Use the Wordpress ...
0
votes
1answer
299 views

Permalinks: custom structure for taxonomy - tags?

In my Wordpress permalink settings I have set the Tag-Base to "". So /tag/whatever is the current-url structure for my tag-page. However I do have a custom-post-type with a custom-taxonomy that is ...
1
vote
1answer
185 views

Query Custom posts of same taxonomy as the post itself

I have 2 custom post types: "Services" and "Works" and they both have a same taxonomy 'Genre'. Now the taxonomy 'Genre' has as term called 'novice'. 5 Recent posts under "Works" which has the term ...
0
votes
2answers
720 views

Display featured posts for a custom post type by taxonomy

Ok, the quick explanation: I'm using a custom post type, 'lakes'. And, using custom taxonomies to organize them. They are: state, watertype and county. I've created a 'page' for each state that ...
0
votes
2answers
277 views

Include different loop templates in search query

I have differnet Custom Post Types in my blog. I also have custom templates for each of them like loop-{$cpt-name}.php I would like to include different cpt templates dynamically in search results ...
1
vote
1answer
68 views

How to obtain the link/URL to the feed of a custom taxonomy?

What I need to accomplish is to provide a feed link for every item in a custom taxonomy. The function get_category_feed_link only works for categories, and I don't see that tags support this either. ...
1
vote
2answers
159 views

Make tag cloud links consistent

I'm using this code: <?php wp_tag_cloud( array( 'taxonomy' => 'channels') );?> To display custom taxonomy as a cloud tag. How can display with all links being the same size? I can't seem to ...
1
vote
1answer
432 views

Custom Post Types, URL rewrite on multiple CPTs

Re: Custom post types, taxonomies, and permalinks by @TheDeadMechanic The solution above works perfectly, and rewrite is great, but can you advise on how to rewrite for more than one custom post type ...
0
votes
1answer
112 views

Altering term_id and name via $wpdb class

$s = $_POST['submitterms']; $querystr = " SELECT $wpdb->terms.* FROM $wpdb->terms WHERE lower($wpdb->terms.name) like '%$s%' "; ...
2
votes
1answer
230 views

wordpress custom post types and permalinks

I have a custom post type called Content, that has a capability type of 'page' and is set to 'hierarchical' => true. I have two pages with the same name "Children", but they have different parents. ...
0
votes
3answers
448 views

Custom Post Type Archive Template

I have similar problem to this one: Custom Post Type Template - Archive I have a WordPress custom post type called coupon. I try to assign the template to it by using archive-coupon.php, but it goes ...
1
vote
2answers
269 views

Using tax_query creates a 1 = 0 or 1 = 1 in $wp_query->request

This is my first attempt at modifying the main query using the pre_get_posts action/filter This is the function currently hooked to it: function advanced_product_search_filter($query) { ...
0
votes
2answers
276 views

Automatically assign a custom post to a custom taxonomy based on custom field value

We have a custom post type called listings, and each listing has a custom field zipcode (which is a 5 digit number). We then have a custom taxonomy area, which can be "New York", "Los Angeles" etc. ...
0
votes
1answer
125 views

Multiple category lists on one page

Is it possible to use wp_list_categories( $args ) several times on a page to list different groups of terms from a taxonomy? The following code displays on term#58 together with a child that says "No ...
2
votes
1answer
239 views

cat_is_ancestor_of() for custom taxonomies

I'm trying to use cat_is_ancestor_of() for custom taxonomy categories but it's not working. Is there any other way to check if a category is child of another?
0
votes
2answers
1k views

How to Query Database for posts with certain Taxonomy Term

I want to write a select query to return data on only posts which have are associated with the taxonomy term food-and-beverage SELECT wp_postmeta . * , wp_posts.post_name FROM wp_posts, wp_postmeta, ...
2
votes
3answers
1k views

Taxonomy archive with same slug as custom post type?

My head hurts... Here is what I have: Custom post type: Our People, slug => our-peopleTaxonomy: Job Title, slug => job-title I have an archive page for the Our People CPT at domain.com/our-people. ...
0
votes
1answer
502 views

Changing checkbox array from single to multiple select

I want to change the code below to allow for multiple checkboxes to be selected. It currently saves and updates only one selction. And to update the option again, I have to "uncheck" the previous ...
0
votes
1answer
617 views

either single-{custom}.php 404's OR /taxonomy/ 404's - custom post type and taxonomy permalinks

I've been playing around with custom post types and taxonomies and banging my head off walls on numerous occasions now - I believe I've read every forum on the internet on how to solve various issues ...
2
votes
1answer
1k views

Permalink rewrite with custom post type and custom taxonomy

I think thats a quick one: I've got: Custom post type: Food Custom taxonomy (Registered to Food): Fruits Terms in Fruits: Apple, Orange, Cherry If I type in example.com/food?fruits=Apple,Cherry, ...
1
vote
1answer
641 views

Exclude Child Term Posts from Parent Term Archive

I have created a custom hierarchical taxomony and when viewing a taxonomy archive page would like to only display the posts that have been assigned to that term. This works fine on the child term ...
0
votes
1answer
1k views

How do I get the custom category URL from the custom post type?

I'm using a custom post type "portfolio" to create new posts and categories. I'm trying to retrieve the correct category/taxonomy URL from the post. I'm a couple days in on this and could really use ...
0
votes
1answer
455 views

search using multiple taxonomies and keyword

I have made six custom taxonomies. I want to perform search using keyword and custom taxonomy in wordpress For eg: I want to have a dropdown with only four custom taxonomies(not all 6) and then filter ...
0
votes
1answer
145 views

Child and grandchild taxonomy listings - 404

I have the following structure: Hotels (custom post type) Continents (taxonomy) Working actual links examples leading to single post: hotels/europe/france/a-hotel ...
0
votes
1answer
233 views

Setup page template array in a custom post type

Hi below is a 'case' (in a custom post type) for pulling all categories and displaying them as a drop-down menu. How can I do the same but turn it into a list of checkboxes? //tax_select - this ...
4
votes
1answer
462 views

Two Custom Post Types, Share Two Taxonomies

I have two custom post types Hotels Things to do And I have two taxonomies Activities Regions So when a user sees a Hotel (custom post): the user can then see the region it's in what ...
4
votes
3answers
1k views

clients list using wordpress

I am using wordpress for my new website and i have list of clients(name and their logos). I am confused how to make those editable using wordpress? Html as follows... <ul> <li><img ...
4
votes
1answer
439 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 ...
-1
votes
1answer
119 views

Displaying the custom taxonomies side by side on the admin dashboard

I got 5 top level cats and for each of these top level cats, I have directly corresponding 5 non-hierarchal custom taxonomies. By default, WordpPress UI display these CT's one after the other. Right ...
0
votes
2answers
523 views

Displaying the post count of all custom taxonomy terms in a list format

I thought this would have displayed the post counts right next to the clickable links wp_tag_cloud( array( 'taxonomy' => $taxonomy, 'format' => 'list', 'smallest' => 12, 'largest' => ...
0
votes
3answers
136 views

How to define a term for custom taxonomy

I have a custom post type called q-questions, and it has a custom taxonomy that called q-categories. I insert post via wp_insert_post and I want to define some terms for the taxonomy My code is: ...
3
votes
2answers
200 views

Taxonomy slug by term ID

I'm trying to modify wp_nav_menu to display term thumbnails. To get those thumbnails I need term ID and taxonomy slug: $thumbnailimg = get_the_term_thumbnail($term_id, '$taxonomy', 'medium'); I ...
0
votes
1answer
844 views

How to make WP_Query not to show irrelevant posts?

I'm using the following WP_Query arguments array: $args = array( 'post_type' => POST_TYPE, 'tax_query' => array( 'taxonomy' => ...
0
votes
1answer
328 views

Custom taxonomy or custom page templates?

I'm trying to decide whether it would be more appropriate to create two new custom taxonomies or if custom page templates would be easier. Here's the scenario: I have 2 custom posts types: "Cocktail ...
0
votes
1answer
160 views

Get Categories Where Taxonomy Equals 'n'

I have a custom taxonomy(the taxonomy is types) that is basically a selector that tells WordPress which section of the site to place the new post. So for example I create a new post and select ...
0
votes
1answer
144 views

count results in search page based on custom category

I have a seach page in which am showing results based on keyword and custom category search. Issue i am facing is that, I need to display the count of results. I had referred the wordpress ...
1
vote
1answer
1k views

How to get my post title to work with an apostrophe ('s)?

When saving a post with the title Jule's Gormet, it gets formatted as Jule&#039;s Gormet. If I save it again, it becomes Jule&amp;#039;s Gormet. Following this pattern, it keeps escaping ...
1
vote
1answer
518 views

Custom Taxonomy Permalinks Redirection

I have set up a custom taxonomy on a custom post type using the following: (For the sake of example, the custom post type is called newtype and the new taxonomy is just called newtax. // Create ...
0
votes
2answers
1k views

How to filter Multiple taxonomies with radio buttons

To The right are the taxonomies, under them are the different terms, based on the radio selection of the terms..... i have to filter and display the car models....... The Live working can be found ...
1
vote
2answers
1k views

Using a different template per Custom Taxonomies for single term archive pages

I have 2 custom taxonomies, each with a number of terms: tax1 term1_1 term1_2 tax2 term2_1 term2_2 term2_3 I am trying to have each taxonomy usea different template file for each its ...
2
votes
2answers
62 views

Keep main articles and author blogs seprerate, News / Magazine like site

I am working on a project that requires a CNN like article structure, where there are main articles (published in a magazine 'volume/issue') and authors' blogs separate. The idea is to have official ...
0
votes
1answer
139 views

How to looping taxonomy terms?

is there any way to loop terms in a way they display in menu? Eg: Let say I have 2 taxonomies in a post type - tax1 and tax2. They are not hierarchical to each other. If I have posts that have ...
0
votes
2answers
234 views

Problem with wordpress pagination

First of all thank you everyone for all the knowledge base i got reading trough stackexchange. For the first time i couldn't find an answer to my problem. The matter is that with this custom query ...
1
vote
1answer
1k views

get_the_category_list or get_the_tag_list for custom post types and taxonomies?

Basically I've setup a custom post type and taxonomy for a set type of posts and I'm creating a child theme from twentyeleven. When I use the default WP Posts and then I tag them and categorize them, ...
0
votes
1answer
55 views

exclude posts from a custom category

I have made a custom category "card_categories". I want to exclude some posts from that category on the category page. For eg :- category id 51 has posts with id's 1,2,3,4,5,6,7,8,9 Now I want that on ...
1
vote
1answer
950 views

Custom Taxonomy Tag Search

I have an existing WordPress search function, what I'd like to be able to do is extend the search to the tags from my custom taxonomy...how do I do that? <form method="get" id="searchform" ...
2
votes
2answers
284 views

Create new category upon save based on post information

After finding a couple of leads on how to do this, I'm coming up blank. What I am trying to accomplish is to add the post to a new category based on camera name. If the category doesn't exist, then to ...