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
1answer
735 views

Advanced archive url structure (category, tag and date)

Is it possible to create a permalink structure like this: mysite.com/category/books/tag/read/2010/01 Or at least something like this: mysite.com/category/books/?tag=read&year=2010&month=01 ...
0
votes
1answer
200 views

How to check if post/page or taxonomy post is published by admin

Example :- 10 users and 2 admin in a site. If the post is published by admins than <?php ?????() { ?> <!-- do this --> <?php } else { ?> <!-- do this if posted by ...
0
votes
1answer
483 views

How can I create an automatic drop down menu with my tags?

I have another post type which isn't the default one. I have four taxonomies attached to that post type. And I have many tags attached to these taxonomies. I would like to create a drop down menu ...
0
votes
1answer
191 views

Removed slug from CPT, now How/where do I hook the filter to the taxonomy term archive pages link?

I added the code below and successfully changed my CPT slug for the taxonomy terms. My blog permalinks are /article/%postname% in case you wonder, and I'd like to keep it that way, so no clashes with ...
0
votes
1answer
606 views

previous_post_link in same taxonomy in custom post type

Im trying to make previous_post_link and next_post_link work inside a custom post type, inside a same category (taxonomy) but its not working. It this posible ? Im trying <?php ...
0
votes
1answer
62 views

Archive custom template from search

I'm using this code for a dropdown of categories. On selection of the dropdown the desired category is displayed using the archive template. I cannot for the love of me get the template hierarchy to ...
1
vote
1answer
161 views

How to Display a menu only if it has Posts in Custom Menu?

I created a custom taxonomy as category and display it by wp_nav_menu. The problem is, so far there are some terms in the custom taxonomy has no post attached to it, but it still show in the menu. So ...
1
vote
1answer
165 views

Clicking Add New button for custom taxonomy only moves element

When trying to click the "Add New Equipment Type" button for my custom taxonomy, it simply moves the DOM element up into the list of entries and fails to add the actual term. Here is my taxonomy ...
0
votes
1answer
443 views

Tags and Taxonomy links not working for Custom Post Types

In my theme, I registered a taxonomy by the name of tax_groups for a custom post type named custom_items. So the following URL was returning the lastest custom_items ...
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
340 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
300 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
724 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
160 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
231 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
450 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
271 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
277 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
242 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
619 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
643 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
456 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
443 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
120 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
524 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
329 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
162 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
145 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
520 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 ...