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

2
votes
1answer
628 views

Change in custom taxonomy permalink cause 404 error for another custom taxonomy

I have created hierarchy based custom permalinks with help of this link. But now it is causing 404 error on another custom taxonomy used in site. Although I want custom permalinks on this taxonomy ...
0
votes
1answer
476 views

Why get_page_template() doesn't show taxonomy template file name?

I made a custom taxonomy called - work-category and a template file for it called - taxonomy-work-category.php. That part work just fine. For a purpose I did put get_page_template() in that ...
0
votes
1answer
118 views

Advanced AND tax_query in sidebar with 2 taxonomies

I have two taxonomy : brand and product. In single sidebar I am displaying the brand and product of the post in the sidebar but I would like to display all the other product of the current taxonomy ...
0
votes
1answer
299 views

How to create a permalink for custom taxonomies and custom post types like base-name/parent-tax/child-tax/custom-post-type-name

I found this link too much helpful. This is what I code so far and got it working for all scenarios except two scenarios. register_post_type( 'article', array( 'labels' => array( ...
1
vote
2answers
327 views

Sum custom field values of particular taxonomy

I need to sum custom field values of a custom post type with a particular taxonomy ONLY. For example... Custom Post Type: Computers Taxonomy: Laptops Custom Field: Quantity How can I get the ...
0
votes
1answer
46 views

passing moree than one value of slugs in taxonomy using variable

array( 'taxonomy' => $taxonomy_array_value, 'field' => 'slug', 'terms' => array( $term_name ) ) This is my code where $taxonomy_array_value and $term_name are variables ...
0
votes
1answer
646 views

wp query with dynamic taxonomies and terms?

I need wp_query with more than one taxonomies and terms which are dynamic. Multiple terms to one taxonomies each. Like If one taxonomy is Color it has terms blue,green,red Second taxonomy is Size and ...
0
votes
2answers
1k views

wp query with multiple taxonomy?

Hello I want to get all the posts that belong to multiple taxonomies. I saw on codex but it is having only static(2) taxonomies but in my case I have variable number of taxonomies. On Codex website ...
1
vote
2answers
227 views

Wordpress Custom Taxonomy - Volume / Issue - Unique Slug Issue

I have a site that I'm making for a quarterly print magazine. I'm making all of the articles from all issues into Wordpress posts. Every Article/Post belongs to an Issue and every Issue belongs to a ...
0
votes
3answers
214 views

Create a page selector using taxonomies

I have created a custom post type and assigned a term from a custom taxonomy to each page within this CPT. I want to create two select boxes on the front end of my site. I want the 1st select box to ...
0
votes
1answer
80 views

How to Control CSS Class Visiblity From WordPress Admin Panel based on Tax Terms

Can you please let me know if it is possible to control Visibility of some html elements like and which are loading from an specific taxonomy terms meta data? I For Example I have two metadata as ...
0
votes
1answer
51 views

Taxonomy query of custom post displays archive instead of posts

I'm facing a strange issue displaying all posts of a certain type of custom post sorted by their category. The code below to display them works fine locally but when I view the page on the server it ...
0
votes
2answers
128 views

making php value numeric

I used some of this code from this page on Stack Overflow: Using wp_query is it possible to orderby taxonomy? It's about the function to be able to sort a query by a taxonomy value. Although it works ...
3
votes
2answers
612 views

Create permalink structure for one taxonomy archive per custom post type

So, I've been going crazy trying to figure this out. Essentially, I've created two custom post types, 'the_case_study' and 'the_video', with respective slugs 'case-studies' and 'videos'. I've also ...
0
votes
1answer
110 views

How to get multiple Taxonomies not All Taxonomies?

I am building a movie site, here is the codes to get the taxonomies function display_post_taxonomies( $content ) { if( is_single() ) { $args = array( 'public' => true, '_builtin' => ...
2
votes
1answer
233 views

Custom taxonomy position in admin panel

I can't figure out how to change position of custom taxonomy menu item in the admin panel. Right now I have custom post type-- custom_1-- and another custom post type-- custom_2. For custom_2, I've ...
1
vote
1answer
151 views

Can't set custom taxonomy terms via custom form

Question I am creating my first plugin and in it users will be able (among other things) to create new post via custom form from wordpress backend. This post uses custom post type and custom ...
0
votes
2answers
241 views

Override Taxonomy Template

I'm trying to list all the products tied to a specific taxonomy. For some reason the template won't work when trying to access "http://www.myexample.com/product_categories/funiture/", I tried ...
0
votes
0answers
94 views

Calling Custom Taxonomy Dropdown in Form

I'm writing a plugin to allow users to submit fragments of lyrics to my site. I have the plugin working minus one aspect. When entering the lyrics I would like users to be able to select the artist ...
0
votes
0answers
19 views

Maintain custom post types and taxonomies in all themes [duplicate]

When I change the theme in dashboard, activated plugins that use custom post types, stay in the menu. But my own custom post types that I created myself disappear. Logically, It is because I create ...
0
votes
1answer
148 views

Control content before and after custom post type loop

I am trying to create a left nav menu that contains a couple of different taxonomy lists of a custom post type. For example, the left menu might look like this... <h2>New Stuff</h2> ...
0
votes
1answer
47 views

Problem retrieving informations and displaying desired structure with custom post type and taxonomy

I have to create a website with a part concerning houses, grouped by type. I thought of using custom post type "house" and custom taxonomy "house_type". function custom_post_house() { $labels = ...
1
vote
1answer
147 views

How to Put Custom Taxanomy Meta Box in Main Column

WordPress added the Custom Taxonomy Meta box at sidebar, Is there any way which we can relocate it in the main column , Under Edit box? Thansk
0
votes
1answer
27 views

create taxonomy

I am new to word press, I want to display results on a page which belong to some group from database(I have group column). I think this can be done by taxonomy so I have taxonomy table but I don't ...
1
vote
0answers
109 views

Move terms from one taxonomy to another keeping the hierarchy

I am creating a custom taxonomy for the first time. I am trying to add a Location taxonomy. What I am actually trying to do is use existing categories to make them into locations. I went into the ...
0
votes
1answer
625 views

How to set hierarchical terms to a post using wp_set_object_terms

I have a hierarchical custom taxonomy called "locations". The parent categories are country names, the child categories are the territories under the country. How can i attach these terms to a post ...
0
votes
2answers
183 views

Display next 3 posts based on custom taxonomy

I am wondering if anyone could help me accomplish something like this: https://medium.com/thoughts-and-words/5ccef7b3e1fc with custom post types? I have a custom post type called projects and ...
0
votes
2answers
3k views

Post type archive page not working

I registered a custom post type using Custom Post Type UI, and created an archive page and named it archive-recipe.php, 'recipe' is my custom post type name. But its not working, instead its using the ...
1
vote
5answers
1k views

How to get next previous category in same taxonomy?

Like WP get_adjacent_post function gives the next and previous post data based on the parameters i want to get the next/previous category data is there any WP built in function which does the right ...
1
vote
1answer
410 views

wp_insert_post not updating custom taxonomy selected if logged in as a subscriber

Here is my Code, it works fine When i try to post data from front end if Logged in as admin, but if i logged in as a subscriber code works fine but it is not inserting the taxonomy term i select, here ...
1
vote
1answer
103 views

Plugin fatal error

I'm trying to activate a plugin I made on a network site. I'm getting an error: Plugin could not be activated because it triggered a fatal error. I have the debug mode on and it outputs all errors ...
0
votes
2answers
1k views

get_term_link not working

I am trying to use the below code snippet to display an image and then wrap it in a link to a specific term archive page. In this case, I have a custom taxonomy (Series) with a few different terms. ...
0
votes
1answer
47 views

Looping taxonomy in taxonomy?

So I have a CPT of references (like a dictionary kind of format for music). In it there are two taxonomies: medium_reference and reference_letter. The reference_letter lists letters A-Z, while ...
0
votes
1answer
3k views

List the categories under custom taxonomy

I have a problem here, I registered a custom post type and I named it 'recipe' then I created a custom taxonomy under the post type, I named it 'recipe category'. Now I want to display the of ...
0
votes
0answers
86 views

Creating Advanced Search with text & Dropdowns [duplicate]

I am working to develop an advanced search option. Where there will be fields: Text input Field (Post Title) Dropdown (it will be a taxonomy) Dropdown (it will be a taxonomy) Basically I need ...
0
votes
1answer
371 views

Custom Post Types Archives and Single Pages not showing custom taxonomy data

I have a custom post type called "Newsitems" that I have registered two custom taxonomies for: "newsitem types" and "news item tags" I want these two taxonomies' terms to appear almost like the ...
0
votes
1answer
425 views

WP_Query order custom post type with certain meta key value by post modified date

I have this query to show custom post type "property", and it works really well but the "orderby" statement, that is completely ignored... $args = array( 'post_type' => CUSTOM_POST_TYPE1, ...
1
vote
1answer
37 views

Include custom post type in “all posts”

(Working of off an existing team that the client already purchase.) I have a WordPress install with a couple of custom post types: portfolio testimonials I've set the taxonomy to hierarchical' ...
0
votes
3answers
66 views

Pull Tags But Not as Links

I'm trying to take a list of tags and list them on the page but without linking to their archive page. At the moment I'm doing this: <?php global $wp_query; $postid = $wp_query->post->ID; ...
0
votes
1answer
132 views

Missing categories for Custom Taxonomy and Custom Posts

I'm having trouble seeing why categories are not appearing for Knowledge Base and Articles. What's wrong with this code? <?php // Custom post types /* faq */ add_action( 'init', 'faq_post_type' ...
0
votes
1answer
141 views

Custom taxonomy auto suggest not working in wordpress admin

I've added to my theme a new custom taxonomy in order to add future filtering capabilities to a custom post type called 'product' (I use the wooCommerce plugin which defines this custom post type). ...
2
votes
1answer
926 views

Combine two taxonomies in a hierarchical tree

For example, I have WooCommerce products that have taxonomies: brand (e.g. Converse, adidas, D&G) (taxonomy id: product_brand) category (e.g. Boots, Sneakers, Sandals, Heels) (taxonomy id: ...
3
votes
1answer
2k views

How can I add programmatically custom taxonomy terms to a custom type post when saving posts?

Scenario: there is a 'Recommended Books' section on the website which uses the 'book' custom post type and the 'author' custom taxonomy. I'm using Amazon Product Advertising API for retrieving book ...
0
votes
0answers
98 views

Display a custom post type list by taxonomy term

I need to show a list of custom post type classified by terms. The idea is something like this: Service list: <ul> <li> <a href="#">Webdesign (taxonomy term)</a> ...
0
votes
1answer
335 views

Transfer taxonomy to custom field

I have a blog with movie critics and I'm using many taxonomies to add some informations about the movies, like director, actors or it's year. Using taxonomies is really useful to display all movies ...
0
votes
1answer
138 views

add_query_arg to look up page title

I'm trying to get the code below to look up the status name, i.e. new, open, pending or resolved with the word ticket together to find pages called new tickets, open tickets etc. $ticket_status = ...
0
votes
1answer
159 views

How to setup a single post page for my custom post type?

This my Custom Post Type Code /* Job Opening */ add_action( 'init', 'create_job_opening' ); function create_job_opening() { register_post_type( 'job_opening', array( 'labels' ...
1
vote
1answer
560 views

Changing taxonomy term by slug (wp_update_term)

What I am trying to accomplish is to update a taxonomy term name using its slug rather than the $term_id Wordpress does this by: <?php wp_update_term( $term_id, $taxonomy, $args ) ?> Is it ...
0
votes
1answer
468 views

Hook to change Custom Tag Taxonomy Links?

I have a Custom Post Type named News that has a URL structure like this... domain.com/news/news-post-name I have also added a Custom Tag Taxonomy for my News Post Type. Here is my Re-write settings ...
0
votes
1answer
222 views

Dynamically tax_query

I have this for example: $myquery['tax_query'] = array( 'relation' => 'OR', array( 'taxonomy' => 'cities', 'terms' => 'boston', 'field' => 'slug', ...