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

learn more… | top users | synonyms

0
votes
0answers
38 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
32 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
28 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
4 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
71 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
53 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 ...
2
votes
0answers
26 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
37 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
106 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
34 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
29 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
29 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
17 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
28 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
27 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
0answers
71 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
14 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
37 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
28 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
119 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 ...
1
vote
1answer
49 views

Autogenerate Front End Form Field With jQuery

I am attempting to autogenerate the terms in a custom taxonomy from a front end field. However, when I use the following code and try to type in a letter the dropdown menu that appears is a bunch of ...
1
vote
0answers
29 views

Filter custom taxonomy archive posts by 2nd custom taxonomy using select dropdown

I have a CPT called 'online-lots' for displaying items in an auction. The posts are grouped by custom taxonomy called 'sale' (e.g. '07_15 July Sale)', meaning that a whole catalogue of items can be ...
1
vote
2answers
56 views

Display certain amount of posts on taxonomy archive page

I have a taxonomy archive page where I display everything under the term 'techno' I want to be able to limit this to 20 posts to a page until it paginates. At the moment it displays 10 on one page and ...
1
vote
0answers
29 views

Custom headers based on taxonomies

Got a bit of an issue that I require a little bit of help with if possible, I have been searching the net for the past day or 2 to try and solve (I have a feeling it will be an easy fix) I am just ...
2
votes
0answers
70 views

Call javascript function when category was added via ajax

I've created a plugin to handle featured images for categories (well, for custom taxonomy actually, but it doesn't matter). Everything is working fine, except the featured image is not cleared after ...
2
votes
1answer
143 views

How to list all categories and tags in a page?

Suppose we have few categories, tags and custom post type and taxonomies. How can we list all categories, tags in a page? Something like; Page Category Thumbnail and Category Name 1(link to ...
3
votes
1answer
59 views

Get_term_by only returns one item from array

I am trying to retreive a term id based on the term name using the "get_term_by" function that is build into Wordpress. However, this function only retrieves one item from the array that i get them ...
1
vote
0answers
58 views

Combine multiple custom user taxonomy in single url

I have created custom user taxonomy for user and its working good. Reference guide:- http://justintadlock.com/archives/2011/10/20/custom-user-taxonomies-in-wordpress Bellow is structure of taxonomy ...
1
vote
0answers
30 views

How to show all post related taxonomies

I created several custom taxonomies for default WP post type. Does anyone knows any widget solution or have any idea for this: How to show (in sidebar) all post related taxonomies? Example: If we go ...
6
votes
1answer
123 views

What is wp_insert_term “alias_of” arg for?

I currently put my hands into WP taxonomy and terms to find solutions for my project. I knew that it's not possible to have same terms slug when creating a term with wp_insert_term in one Custom ...
9
votes
1answer
289 views

Need a simple but complete example of adding metabox to taxonomy

Now that WordPress 4.4 is out, we can start using the new awesome term meta functions! Still, there seems to be no simple tutorial on how to add a basic text field to a Taxonomy. I tried to adapt ...
3
votes
2answers
57 views

How to overwrite a specific parameter in a core taxonomy?

The Codex page for register_taxonomy says that This function adds or overwrites a taxonomy. How can I use it to overwrite a core taxonomy without redefining all the parameters ? For example, ...
2
votes
0answers
32 views

Creating Custom Taxonomy With mapping to post type

I just want to create a custom taxonomy for my plugin use but this should not be liked with any post-type and also i need to add the menu in my custom admin menu (Which i have already Created). I ...
1
vote
0answers
25 views

Category lists page foreach Paging

I use the following code shows the classification of the article with a list of all the category list on the page template, but such a page will be displayed all categories. I hope one page displays ...
1
vote
1answer
110 views

has_term not working

I've been scratching my head all day with this one. I'm trying to use has_term but it just won't work. I do get this notice but I'm not 100% sure it's related. I've also tried is_object_in_term() but ...
1
vote
2answers
36 views

Replace taxonomy permalinks

I have this permalinks settings: /%postname%/ I have a custom taxonomy issue. I want replace all my taxonomy links (site.com/category/wordpress) to (site.com/category/wordpress/issue/any-child). ...
3
votes
1answer
100 views

Is there a way to set singular/plural labels for taxonomy term names?

Let's says I have a taxonomy called Types. I know I can have a singular name when registering the taxonomy... so I could just set the singular label to Type. But is there a way to the same/similar ...
1
vote
0answers
16 views

Taxonomy in woocommerce

Create brand taxonomy WooCommerce As I can list for each brand product categories that have ? For instance : If there are products Acer , in the category servers, accessories, and desktop . And ...
1
vote
0answers
31 views

Adding custom taxonomy in same menu place with two custom post types

I have registered 2 post types: register_post_type( 'post_type1' , $args1 ); register_post_type( 'post_type2' , $args2 ); And I've registered a custom taxonomy associated with the second post type: ...
1
vote
0answers
15 views

get_adjacent_post by language

I am using Polylang plugin, which assigns each post to a taxonomy 'language'. While using get_adjacent_post() I want to bring only those posts that belong to the language currently displayed. So I ...
1
vote
0answers
24 views

Show child terms of current term of the taxonomy

I have some taxonomies (such as product, articles &...) and any taxonomy has some terms (Eg for product: mobile, book & ...), and any terms has some child terms (Eg for mobile: iPhone, ...
1
vote
0answers
62 views

Filtering *out* a taxonomy from the admin post list

I've got a custom post type 'Speakers' that, after some time, are added to a custom 'archive' taxonomy so that they can be sorted into different sections of the site. I'd like a way to hide any ...
0
votes
1answer
34 views

I have custom post type with custom taxonomy. But not found the taxonomy page..

this is my link. http://redesign.conei-sa.com/apps_cat . not found . My code in function.php. function prefix_register_post_type() { register_post_type( 'application', array( ...
1
vote
0answers
88 views

How to make custom taxonomy into drop down select in a custom metabox

I have a custom post type that I am creating custom meta boxes for on the "Add New Post" screen. I would like to remove the default meta boxes for a given custom taxonomy and place it in a drop down ...