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
0answers
31 views

Rewrite Rules with custom taxonomies not changing

I've been messing around with wordpress custom taxonomies recently in conjunction with advanced search queries and I'm trying to make search urls look prettier by using rewrite rules, these taxonomies ...
0
votes
1answer
47 views

Broken paths on taxonomies after changing permalink to post name

I have a custom taxonomy. I was able to access the list of items with term foo in taxonomy bar at mysite.dev/?bar=foo. I then changed my permalink options from the default to "post name". I can no ...
0
votes
1answer
23 views

Using custom taxonomy when registering a new custom post type

I'm creating my own custom post type and here is the code for this: add_action( 'init', 'create_gallery_post_type' ); function create_gallery_post_type() { register_post_type( 'gallery', array( ...
0
votes
1answer
19 views

Add file attachments/meta to a custom Taxonomy

I'd like to be able to upload a .pdf attachment to each Custom Post Type Taxonomy item. I've found some extensions that add meta fields to Taxonomies, but they don't support files. Is it possible to ...
0
votes
1answer
20 views

How to call a custom taxonomy term name inside a function?

With the following function, the content of another page is included into a page template, which is working fine: // add content of another page function show_post($path) { $post = ...
0
votes
1answer
73 views

Function not working on live server but every thing is fine on localhost

I am using a class to add featured images to the taxonomy terms , followed the tutorial on http://en.bainternet.info/wordpress-taxonomies-extra-fields-the-easy-way/ this is the code i used inside my ...
0
votes
1answer
44 views

Displaying a custom post types custom taxonomy value?

I've got a custom post type with multiple custom taxonomies + metaboxes. I've used multiple approaches from the codex and other on line resources but none seem to work. I basically want to display the ...
0
votes
0answers
39 views

“Tree view” for wp_dropdown_categories() markup

I'm using wp_dropdown_categories() to generate a select box of hierarchical categories. By default, the select box is just a huge list of indented categories: This works fine until the number of ...
0
votes
0answers
22 views

How to solve performance issue caused by custom post type overview with 20k+ custom taxonomy terms

For a custom post type I added a custom taxonomy which contains 20k+ terms. This is causing some serious performance issues for both the custom post type edit screen (which should be solved removing ...
1
vote
1answer
43 views

Custom post type templating problem

I have a custom post type named 'product', with taxonomies 'brand' and 'type'. I'd like to have Archive Page A: sidebar with all the 'brand' terms linking to their respective archive page list of ...
1
vote
0answers
33 views

How to use multiple archive templates for a taxonomy?

I have created a custom post type (product) with a taxonomy (brand). I need to have the basic archive pages (type A) and then custom ones (type B) to create a product comparison page which esentially ...
0
votes
0answers
33 views

How to add custom post type taxonomy select to template page?

i have a custom post type "location" that have custom taxonomy "continent" (Asia,America...) i also have a page template "Loacation map" that i want it to show only loacations from specific continent ...
0
votes
0answers
28 views

custom taxonomy don't return a value

I have initiated couple of custom taxonomies, using the following code function sources_init() { register_taxonomy('sources','post',array( 'hierarchical' => true, ...
-1
votes
2answers
26 views

How to display Custom taxonomy on custom post listing page [duplicate]

I want to show the custom taxonomy name on the listing of custom post type on my front end
0
votes
0answers
31 views

Trying to display breadcrumb of custom taxonomy & custom post type

My code below is to create a breadcrumb. I'm using a custom taxnomy & custom post type. Please can someone provide some tips to make my code work below? Thank-you. I have tried: function ...
0
votes
1answer
94 views

Custom archive page based on array of categories and tags

I'm looking to create custom archive page based on passed arrays which contains categories and tags, for an example: ...
1
vote
1answer
40 views

Correct classes for WordPress menu items

I have been trying to get the current menu item to my custom post types. I cannot get it to work, and when looking at my menu, I am wondering, that if everything is allright. Which are the correct ...
0
votes
2answers
86 views

WP_insert_term how to insert multiple values as taxonomny term?

I have this script (found online) to import the values of an input form field as a taxonomy term. I got it working, but now I'd like to import/save the values of multiple form fields. Now all it does ...
0
votes
1answer
31 views

Why cant I add a custom post type to a custom taxonomy?

I am trying to assign a custom taxonomy to a custom post type with wp_insert_post function. $args = array( 'post_type' => 'custom_post_type', 'post_title' => wp_strip_all_tags( ...
0
votes
1answer
49 views

Single page archive - get coresponding taxonomy and terms

For custom post type i have 12 taxonomies (12 months) and each of them with many terms (plant parts - roots, leaves, flowers etc.) On archive page i retrieve a data list with this foreach($months as ...
0
votes
0answers
24 views

custom search form not working on custom taxonomy template

I am using custom search from on taxonomy template like my custom taxonomy product_category and i have created template taxonomy-product_category.php and i have created a custom from on this file when ...
0
votes
0answers
27 views

Translate SQL query to wp_database with JOINS into wp_query

StackExchange members! It's so happened that I'm using straight SQL queries in my application. I'd like to rewrite it and use WP_Query, but, unfortunately, I have no idea how to translate, let's say, ...
0
votes
0answers
23 views

custom post type taxonomies order desc

this code works fine here http://wellspringchurchnc.org/redesign/sermons/ but i can't seem to change the order to display in descendent $args = array( // 'posts_per_page' => 1, //'order' ...
0
votes
0answers
33 views

Pre_get_posts to exclude latest posts of a custom taxonomy, can't find the error

I am trying to exclude the latest three posts which have the custom taxonomy "video" from the homepage loop. The hook I have written is the following: function main_loop_excludes($queryhome){ ...
0
votes
1answer
32 views

Category page and edit post page with this category very slow

For a WP install we created a custom taxonomy which is used within a custom post type. This all seemed to work fine. The problem started since this custom taxonomy needs to be filled with ...
0
votes
0answers
12 views

How to convert this snippet to taxonomies instead of categories

How would I change this snippet of code so that it outputs a list of the child taxonomies from the current custom parent taxonomy rather than categories. This will be outside the loop in taxonomy.php ...
0
votes
1answer
46 views

How to assign custom post template to its custom taxonomy terms

I have created a custom post type 'interview' and also created custom taxonomy 'interview_category' for the interview custom post type, that custom taxonomy have terms like students, teachers, ...
0
votes
2answers
124 views

How to show/hide a meta box using categories, with a different post type

The following code hides a meta box when certain categories are selected using jquery, in post editor. It works with post as the custom post type. I need it to work with a custom post type called ...
0
votes
1answer
20 views

Different structure/content for posts from a custom post type

I've a CPT: Services and created two posts underneath it. Now, both those posts have some static content which is different in structure and design from each other. How do I place that content in my ...
0
votes
2answers
18 views

add taxonomy as one of menu items

I have created a custom Taxonomy called Documents and I want to show it as one of menu items, I am only able to choose from its posts. How shall I do that? As below picture I am not able to choose ...
1
vote
1answer
45 views

Wrong request query on cpt and tax

In my plugin I think that I use pretty much standard and documented way to add my custom post type and two tax (cats and tags), but only thing that I do is set custom capability_type and perms. Here ...
0
votes
1answer
35 views

Excluding top level from taxonomy and post loop

I've got a custom post type / taxonomy. I've created a list that shows all the categories and the posts in them. I have set up a top level category (taxonomy) that has two sub categories. I want my ...
0
votes
1answer
53 views

List all posts in taxonomy term

I have a custom post type called anime and a taxonomy called series. If I view any post and that post belongs term Banana it should list all the posts in term Banana in a dropdown list. Here's the ...
0
votes
1answer
38 views

How to use taxonomy term as a value of get_template_part?

I would like to dynamically import different template parts (hardcoded sidebars or navigations) into my layout based on a taxonomy assigned to the post. For instance, this "standard" code works as ...
6
votes
2answers
166 views

Get The Post Type A Taxonomy Is Attached To

Being given a taxonomy or term, is is possible to pull any / all post types the taxonomy is attached to? For example, knowing the built in taxonomy category or being given a term in the category ...
0
votes
0answers
38 views

How to get list of taxonomy slugs ordered parents>childs?

Is there an existing function in WordPress to generate a list of taxonomy slugs ordered by parents > childs > subchilds in an array? I need to generate a URL structure for my custom post type in ...
0
votes
2answers
23 views

Custom Taxonomy Breaks Pages

I have a custom taxonomy called 'industry' that I want to use on custom post type 'website-design'. It works on the intended post type, but other pages are broken. I changed the 404 template as per ...
0
votes
0answers
94 views

Getting a term_id given a term_taxonomy_id?

Basic question: If I have a term_taxonomy_id, how can I get the term_id? I thought I could get the term object by get_term_by('term_taxonomy_id',$ttid,'my_custom_taxonomy'), but WPML localizes it - ...
0
votes
0answers
39 views

Prevent repetitive terms in get_the_term_list

I've created a custom taxonomy 'work_category' for a custom post type 'works'. Then I added 5 new work categories and assigned them to every single 'work'. I've used get_the_term_list to print out a ...
1
vote
1answer
167 views

How can I see a list of my Custom Post Types of the last term I was in?

Sorry about the title I do not know how to put the question in the form of a title very well but my question if very descriptive. Iv been meaning to asking this question for a while now and would ...
1
vote
2answers
135 views

Custom Taxonomy breaking pages permalinks

I'm stuck for some days with this problem and I don't know what else to do. With %somethingHere% on slug rewrite, pages permalinks are broken (CPT AND CT OK). Without, I don't have my desired Post ...
0
votes
2answers
15 views

Trouble showing showing Posts related to custom post type and taxonomy.

Having issues showing posts based on custom post type's custom taxonomy. I can get ALL the posts to show up in the custom post type but not JUST the taxonomy. here is how I registered Post Types ...
-1
votes
2answers
124 views

Repeating posts when paginating random posts

I have 1 Custom Post Type of products as well as two taxonomies of types and countries. I'm displaying my custom post type of products on my taxonomy.php page with paged pagination. I am also using ...
1
vote
2answers
110 views

How to create archive page for taxonomy terms within custom post type

I am needing to create an archive page custom taxonomy terms that are within a custom post type. It's set up as CPT > Custom Taxonomy > Taxonomy Terms. I have a custom post type called "Projects," ...
0
votes
3answers
158 views

Get custom post type parent category

I'm creating a custom post type like this: function btp_work_register_post_type() { $args = array( 'label' => __('Works', 'btp_theme'), 'labels' => array( ...
0
votes
1answer
27 views

One custom post type with two different url structure base on taxonomy term

i have one cpt Anime and it has post_type taxonomy with term anime and animation anime(cpt): (site domain)/anime/post title | |-(tax)Anime |-(tax)Animation And my url structure are ...
0
votes
1answer
35 views

Get custom taxonomy name (not the term) in custom post

Is it possible, within the loop (or given the post ID) to retrieve the name/slug of the main custom taxonomy of a custom post? What I really need is the taxonomy term, and that one I can find it ...
1
vote
2answers
36 views

How to count the number of terms in a taxonomy

I have a custom post type "Services". It has a hierarchal taxonomy of "service-category". Service-category has both parent and child terms. I need to count the number of parent terms in the ...
0
votes
1answer
100 views

How to query posts by meta keys AND under specific category?

The scenary: I'm working in a review system for WordPress, a game review website. It uses default posts, that when under "review" category, shows the review's meta fields (from ACF plugin). It's ...
0
votes
1answer
64 views

Conditional Logic Based on Custom Taxonomy

I’m working on a large site in which I need to create various lists of different pages in the sidebar. I registered a custom taxonomy using the Pods plugin called “Page Categories” (page_category), ...