A taxonomy is a generic "category" used to organize posts and custom post types

learn more… | top users | synonyms

0
votes
1answer
42 views

How to output hierarchical taxonomy path, with only the deepest term assigned?

Let's say we have a taxonomy that goes three levels deep, eg. A > B > C. Next, we create a post and assign it to the "C" term. In our case here, there will only ever be a single assignment; ...
0
votes
0answers
20 views

Multiple Custom Post Type loop logic

In short this is what I want to archive: [template body] - default post title - default post body [custom loop | tabs] - tab 1 -- tab 1 title -- tab 1 content --- related articles to tab 1 by ...
0
votes
2answers
37 views

Display taxonomy term only if there's a value

I have a post type which I want to add some taxonomy values (tags) Example Post Type One City: London, Paris Color: Red, Yellow Language: In the example above, Language doesn't have any value, ...
0
votes
1answer
27 views

Custom Taxonomy is disabled on Edit page

I created a custom taxonomy that it is being used for the product post type of woocommerce. For some reason when you go to the edit screen it is appearing disabled. This is the code that I'm using ...
0
votes
1answer
50 views

How add body_class from wp_termmeta

I need to assign a class to the body for woocommerce categories. What I've done: // add the fields when the term is created add_action( 'product_cat_add_form_fields', 'add_product_cat_class_field', ...
1
vote
1answer
24 views

get_posts that match a user-specified value on a page

On each page, I want the admin to choose which case history post summaries will be displayed depending on the post category. My code below works but it is very clunky if you have lots of categories. ...
0
votes
2answers
92 views

User role permissions based on taxonomies

I was wondering if it's possible to set up user roles in a way that means that users in certain groups can ONLY edit posts that have a specific taxonomy assigned to them e.g: Properties (Post Type) ...
0
votes
1answer
38 views

Fatal error Call to a member function filter()

I am using wordPress version 4.4.2 + Jupiter 5.08 on Apache 2.2.22 (Debian) The website seems to be fully operational, but in the Apache error log I got this message : PHP Fatal error: Call to a ...
0
votes
0answers
19 views

Exporting tags to cloned blog

So, I've been developing a blog in local, using a clone of a site, same posts, categories, tags, etc. The problem is that meanwhile, the client has created a lot more tags that were not present when I ...
0
votes
0answers
64 views

Woocommerce only show attributes for specific category

I can't work out how to do this. I want to list the pa_country attribute terms for a 'wine' category in the sidebar. I can list all the 'pa_country' attribute terms for all categories, but that is ...
0
votes
0answers
30 views

Submit a Custom Post Type in WordPress from the Front End in Every Category

I want a front-end submission form in my WordPress website. Where this form should be available to each category? I want only two things in the form namely post title and post content. Is there ...
1
vote
1answer
36 views

Allow only 1 instance of each term in each custom taxonomy

I'm looking for a function that restricts the creation of each term to only 1 instance within each custom taxonomy. Each custom taxonomy may have the same term but the term may only occur once in each ...
0
votes
1answer
30 views

WP Query for variable taxonomies

I am stuck with this. Maybe its simple, maybe its not. But there goes. I understand that the standard way of querying multiple taxonomies in wordpress is using the method described here. ...
0
votes
2answers
66 views

How to check if a taxonomy not exists in a plugin

I made 2 plugins (Plugin A and plugin B/custom post type.) which some of the the module on Plugin A need to call taxonomy from PLUGIN B. Everything works fine when both plugin active, but when the ...
0
votes
0answers
25 views

How do I output “Parent Term / Child Term” of a taxonomy for a custom post?

Inside a custom post (a glossary term), I want to output its subjects (in taxonomy 'glossary_subject'). Some subjects have parent terms. I would like my output to look like this: Parent Term1 - Child ...
0
votes
1answer
14 views

Templates files for custom post type with custom tags

There is a task: Create a new post type (video) with its own post tags and tag page - separate from normal post. What I've done: // Create a new post type register_post_type('video', ...
0
votes
0answers
23 views

How to make multiple taxonomies hierarchical?

I have 4 custom taxonomies - Board, Standard, Subject, Chapter for my edu blog. I want to make one taxonomy under the other like Board > Standard > Subject > Chapter for listing. I have already been ...
0
votes
0answers
39 views

Get wp_taxonomy_term inside WP_Query throwing an error

I am using Elastic Grid in my site. When I am coding in to the WP it is giving me an error saying K.data(...).split is not a function Here is my code, $(function(){ ...
0
votes
0answers
14 views

Show “Parent Term / Term” in Edit Product Attributes tab - Multiple terms with same name

I have a WooCommerce site which needs to use the same term name in different parent terms under a given attribute. It has to be done this way because of the in-house infrastructure being that way. ...
0
votes
1answer
39 views

Get wordpress taxonomy archive and sort by year

I have a custom post type with a custom taxonomy. I am currently displaying all the posts sorted by date with a header of the date above all the posts using this code: <?php $years = ...
0
votes
0answers
23 views

Create and Update Terms (parent and child) after save post or meta_values

I'm working to create a site for estate agencies using WordPress. For some reasons, when the post is updated, I need to create and/or update terms for the taxonomy "location" that is used by custom ...
0
votes
0answers
42 views

Way to target parent product category and all sub children

This might be a weird question but I have the following if... statement: if ( is_product_category ( array( 'parent_category', 'child_category', 'child_category', 'child_category ) ) ) { I am ...
0
votes
0answers
20 views

Taxonomy Term Meta not importing

I have created a Taxonomy for Custom Post Type and its working fine while saving, updating, editing etc. But its not working while importing xml the sample data. Here is the Code function ...
1
vote
1answer
51 views

Custom taxonomy on users with UI

WP lets us register_taxonomy() with users as the object type, thus creating taxonomies mapped to user IDs rather than post IDs. https://codex.wordpress.org/Function_Reference/register_taxonomy ...
0
votes
0answers
45 views

Empty 'terms' in 'tax_query' returns an empty array

I would like a simple search on the products page, so I built a custom WP_Query. $args = array( 'post_type' => 'products', 'meta_key' => 'product_price', 'meta_value' ...
0
votes
0answers
33 views

How to fill up in tags?

i have some problem to fill up the data Here is my code $.getJSON( url + input + "/keywords?" + apikey, function(tmdbdata) { $.each(tmdbdata, function(key, val) { if(key == "keywords"){ ...
0
votes
0answers
8 views

Adding hook when post is submitted [duplicate]

i made a custom taxonomy named project and i wanted to add a validation during the submission of post. I want to check if the post has selected any terms under the project taxonomy. what can i do to ...
0
votes
2answers
31 views

taxonomy terms are not populating select tag options

I am retrieving taxonomy terms. The code is working. Foreach creates three options for the select tag. There are three terms. But, when I wanted to echo "selected" for each options, after selecting ...
0
votes
0answers
21 views

taxonomy terms are not retrieving

My custom post is "employee" Its taxonomy is "department" I made a widget for showing taxonomy terms. but it is not working. What did I miss? class Employee extends WP_Widget { function ...
0
votes
0answers
5 views

Go to Previous or Next custom taxonomy

I have created a custom post type called "Items" and a custom hierarchical taxonomy called "Editions" Each taxonomy category page displays a list of items. I would like to create links to the ...
0
votes
0answers
24 views

Override “Parent” input for custom taxonomy

I have a custom category taxonomy. I am going to have a massive amount of categories, by 90% of them will be child categories. Currently the "Parent" input will display every parent and child ...
0
votes
1answer
75 views

Sort results without WP_QUERY?

I am new to coding a WP_QUERY and I tried a few things with it but it doesn't seem to work. Right now (you can see the page here: http://boomerang.mannydesigns.co/artistes/parcourir/musique/ ) I need ...
1
vote
1answer
56 views

Custom post with more than one custom taxonomy

The the code below pulls the 'plan type' taxonomy from the custom post type 'floorplan' and displays the posts accordingly, that works great. The problem I'm having is that it works only when each ...
3
votes
0answers
30 views

Custom Taxonomy's Label to change the text appearing in Appearance > Menu

I have three custom post types, each has its own taxonomy like product_cat, event_cat, media_cat. I labeled all of them with the word "Category" like: register_taxonomy("product_cat", "product", ...
0
votes
0answers
41 views

How to add id to custom post type taxonomy term slug?

For example, if custom post type taxonomy is "cpt-category" and term is "cpt-term-11", I would like to show and link like this(*123 is term id) /cpt-category/123/ instead of ...
1
vote
0answers
155 views

Fatal error: Call to undefined method stdClass::filter() in wp-includes\taxonomy.php on line 805

Hi I just updated my WP site from 3.8.1 to 4.4.1 version (related to this). After update I got this error Fatal error: Call to undefined method stdClass::filter() in ...
1
vote
1answer
36 views

How to export/import categories and keep their IDs?

Using a plugin doesn't keep the IDs of the categories and exporting/importing of the wp_terms and wp_term_taxonomy tables only works on categories without parents, it seems. The admin panel still ...
2
votes
1answer
30 views

Add custom taxonomy under the category title

I've added a custom taxonomy to my product category page in the admin. I can call the custom field using the following: $queried_object = get_queried_object(); $t_id = $queried_object->term_id; ...
1
vote
1answer
26 views

Get posts by name and taxonomy term

How do I get all posts that has a taxonomy term and a specific name/slug? I have tried with the following arguments but without getting the wanted result. What am I missing, how can I combine the ...
1
vote
0answers
30 views

Wordpress thinks my custom taxonomy pages are search pages #seo

I have set up a custom taxonomy for regular posts called guide. I have a template file called taxonomy-guide.php which lists out posts with a guide taxonomy. So my URL structure appears like this: ...
1
vote
1answer
18 views

Search Posts / Pages with multiple options?

Here is what I am trying to accomplish. Need to design a website for Alcoholics Anonymous (local Chapter) to search for meetings. Need to search for multiple choices of meetings for example. Men's ...
1
vote
2answers
30 views

Ordering Taxonomies / Changing term_id

I have a site where there are nearly 200 series (custom taxonomy) and roughly 10 items (posts) in each. Each series is called 'Name: Series Number - One liner bout the series'. When I use get_terms ...
1
vote
0answers
42 views

Add Taxonomy Subcategory To Permalink

I am using a custom post type (job_listing) and custom taxnomy (job_listing_category) via the Job Manager plugin. I came across a guide in the plugin's documentation, to "add the Job’s category name ...
1
vote
1answer
90 views

I used the Tax-meta-class by bainternet but i still can't get it to display any of the results.

here's my code: $config = array( 'id' => 'tax_meta_box', // meta box id, unique per meta box 'title' => 'Tax Meta Box', // meta box title 'pages' => ...
1
vote
0answers
15 views

Get the taxonomy of a post hierarchically

I would like to get all the taxonomy of one post (in a loop), hierarchically. Example I have those taxonomies, and the ID of the tax in bracket. Tax1(1) -Tax2(3) --Tax3(2) I would like to gather ...
1
vote
1answer
21 views

Should I be using custom post types for this or terms and taxonomies?

So for the past week or so, I've been developing a plugin that lets users manage a restaurant menu. I've learned a lot about the process of making plugins as far as adding custom post types, creating ...
1
vote
0answers
52 views

Display Posts Loop for each parent and for each Child

i have a custom query to display relation with posts (post 2 post plugin) my existing code display : foreach terms as terms i need to display for each Parents Display Child then Posts Titles ...
1
vote
0answers
32 views

Prepending %category% onto default posts fails

I have been attempting to change the rewrite slug on the default posts. This is my post_type re-registering code (Taken from another post on StackOverflow) with the simple intent of changing the ...
1
vote
1answer
137 views

Taxonomy , subtaxonomy,child taxonomy of a product woocommerce

Hi i need to get the main taxonomy and sub taxonomy of a product in woocommerce . i know how to get taxonomy details .123 is product id . $terms = get_the_terms(123, 'product_cat'); I know how ...
1
vote
0answers
20 views

Individual testimonial taxonomy not displaying (white screen)

I am using a testimonials plugin which is working fine except for when I try to view the testimonial entry as an individual page The plugin author suggested changing the testimonial slug and updating ...