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

learn more… | top users | synonyms

0
votes
0answers
26 views

Change category block name/title in add/edit post screen

Category taxonomy is a default taxonomy comes with wordpress on post type. I want to change the name of this taxonomy to something else. How can I achieve that?
0
votes
0answers
500 views

add custom fields in custom taxonomy meta box in wordpress-3.5.2

Unable to add custom fields in custom taxonomy meta box in wordpress-3.5.2. I have checked solution in various blogs but Unable to solved this problem. I am using wordpress-3.5.2 What I am trying is ...
4
votes
1answer
12k views

Get Posts by Custom Post Type ,Taxonomy, and Term

Ok, so i have a Custom Post Type called "Services". This custom post type has a taxonomy called "Areas" and there's 5 terms in that taxonomy. Let's say I have 10 posts on "Services" and there's 5 ...
0
votes
1answer
193 views

How to permanently delete a taxonomy

I want to delete a taxonomy (both form wordpress and database) created long time ago and now no more used. How to do it? I found this function but I think it will delete all my taxonomies... and I ...
0
votes
0answers
47 views

Query users based on posts in Taxonomy A and Taxonomy B

When you are on the "sorority" OR "school" taxonomy page, ALL of the users in either the "sorority" or "school" taxonomy page display. <?php $term = get_term_by( 'slug', get_query_var( 'term' ), ...
0
votes
0answers
236 views

Woocommerce Category hierarchy

I am building a store with different brands. I want the flow to go Store > (Brand) > (Gender) > Product. I know I could set each brand as a product category and then create Gender as a subcategory for ...
0
votes
1answer
162 views

Sorting Custom Taxonomy in ASC/DESC order?

Before anyone say that I didn't try let me say I tried a lot to achieve this. I even achieved but when I add the following code to functions.php the sorting works but the filters on left side ...
1
vote
3answers
8k views

How to display custom taxonomies in posts?

Almost all themes display categories (with its permalink) by default. I am looking for similar type of code to add in my theme. From where can I get it? To create custom taxonomies, I'm using More ...
0
votes
3answers
746 views

Custom hierarchal taxonomy loses interface hierarchy when selecting parent & children

I have a custom hierarchical taxonomy that is called 'Categories', but serves a different area of the site than the default "Categories" taxonomy. The problem I'm having is with selecting children ...
0
votes
1answer
151 views

Hide image if taxonomy term is empty

So I have a Country taxonomy with the country names as terms. The country names are represented by clickable flags (png images) on a map. Now I only want to show flags for terms that have countries in ...
0
votes
1answer
18 views

Add a tag like a post

For days I'm looking at different threads Stackexchange, but I can not find the solution. I hope you can help me out. I created a post_type called "bands". I'm trying to, from another post_type (eg ...
1
vote
1answer
495 views

Custom Post type taxonomy single templates

I have created a Custom Post type called "Ad" I then have a taxonomy under that called "type" I have added some terms in the Type category called "Radio", "TV", "Print". I would like WordPress to use ...
0
votes
0answers
91 views

When creating new terms I get PHP Notice: has_cap was called with an argument that is deprecated

I have created a taxonomy that acts like category. Then I used this code to add image to very term. All works great but I faced 2 problems. How can I remove image from term after I have selected ...
5
votes
4answers
1k views

Plugin to restrict non-admin user to existing tags

Is there a plugin that would restrict non-admin users to only existing tags? I could have used categories for this, but it will be difficult to display with a large population (~1000) of tags.
0
votes
0answers
26 views

Get all the contents of taxonomy and sort by term

I'm doing this in a page template. So far, I can query all the contents under my taxonomy. But I need to sort them in terms of their term. Any idea on how to do this? Providing an example would be ...
0
votes
0answers
14 views

How do I display the contents of each custom taxonomy term and segregate them?

I currently have a page which display all the terms and their contents. <?php?> $audio = get_posts( array ( 'paged' => get_query_var('paged'), 'post_type' ...
0
votes
2answers
71 views

How to limit the number of terms (terms acts like categories)

Hello i have created taxonomy in custom post type that act like category. then i have created terms that acts like categories. i have create widget that show all terms from taxonomy. all works ...
0
votes
0answers
46 views

How to dynamically select particular WordPress Category?

I build my simple wordpress magazine and I have multiple categories, like cover, volume 1, volume 2, etc. In the index / homepage, I want to display table of content for each volume (based on ...
0
votes
2answers
233 views

Tax Query trouble

I can't seem to figure this out. The following query works: $xxxx = new WP_Query(array( 'listset' => 'homepage', 'meta_query' => array( array ( 'key' => 'show_home', ...
1
vote
2answers
182 views

Error sending array of inputs

Hello I am getting a Error of the Wordpress includes, this error appears when I post the multiple values of a taxonomy <form role="search" method="post" id="searchform" action="<?php echo ...
0
votes
1answer
50 views

How to get all the terms of a post

Here is my code so far: $terms = wp_get_post_terms($event->ID, 'speakers', array("fields" => "all")); print_r($terms); It displays this: Array ( [0] => stdClass Object ( ...
1
vote
2answers
343 views

WordPress built-in method to extract array of term IDs?

I'm querying a custom taxonomy for a post, hoping to get a list of all terms for that post and taxonomy. get_the_terms($post_id, $taxonomy) works, but gives this ungodly array of term objects that ...
0
votes
1answer
140 views

Passing values by form to create a query

I have this structure: taxonomy - term1 -- child term1 -- child term2 -term2 -- child term1 -- child term2 I have two select boxes. First one shows the parent terms (term1 ...
0
votes
0answers
105 views

New taxonomy - have_posts() returns false

I have created new taxonomy for posts using this example code from codex.wordpress.org (modified for post instead of book from the example) $labels = array( 'name' => _x( ...
0
votes
1answer
42 views

Order custom Taxomony alphabetically and reversal after clicking a button?

I made a custom type named foods and a taxonomy named fruits. I want to order the fruits name alphabetically ( A-Z ) on clicking a button and then clicking on it again it will show Z-A order. Can ...
1
vote
2answers
70 views

Get list of all custom tanonomy id

I created a custom taxonomy called Location then added New Jersey, New York, etc. Is there a Wordpress function that will get the list of all ids under the Location similar to what ...
1
vote
2answers
130 views

Is slug “type” reserved and can't be used in taxonomy rewrite?

I desperately need your help guys. I am trying to register custom post type and taxonomy the following way: add_action( 'init', 'product_catalog' ); add_action( 'init', 'product_type', 0 ); function ...
0
votes
0answers
16 views

Rewrite author_name to color [duplicate]

I'd like to rewrite author_name to color. So example.com/?author_name=blue would be example.com/?color=blue I searched for hours but can't find anything useful. Any ideas?
0
votes
0answers
22 views

Custom category conditional

I have some custom categories and I want to show a image if its a certain category, for example i did this but its not showing: if( is_category( 'bikes' ) ) { echo 'MY IMAGE'; } Could someone tell ...
2
votes
1answer
2k views

How to add terms to taxonomy with wp_insert_terms?

I have a huge excel database of locations which I want to add as terms to my current taxonomy. However, I don't know the best way to do this, as inserting manually could take weeks. I have looked at: ...
0
votes
2answers
131 views

Taxonomy Overview Page?

I'm looking for a way to create an overview page for taxonomies. So say you're on a page for a certain page (domain.com/my_tax/myterm) it would show different content types in the 'myterm' category. ...
0
votes
0answers
55 views

How can I set up the URL for a category archive for a custom post type?

I'm working on a site www.site.com that has an additional post type: project. In registering project, I've declared "taxonomies"=>array("category") so that I can categorize the essays. Works fine. ...
0
votes
1answer
43 views

Display only the latest post

There seems to be something wrong with the logic of what I'm doing. I just want to display the latest post in a custom term. But instead I'm displaying every post for that term, even though I am ...
0
votes
1answer
77 views

Delete Term via edit-tags.php

I might get rep'ed down on this - but is there suppose to be a "Delete" link on the edit-tags.php page? Note: not the WP-List-Table, but the actual page where you specifically view the terms ...
0
votes
1answer
46 views

Check if taxonomy is attached to at least one post in a post-type

To check if at least one post in post-type products has the led term I usually do this: $query = array('numberposts' => 1, 'post_type' => array('products'), 'television' => 'led'); $products ...
0
votes
2answers
578 views

Trying to list terms of a custom taxonomy using get_categories

I'm using this little snippet of code to try and list the terms of a custom taxonomy for use in a meta box select box but it doesn't show anything when I implement it (Despite working with the default ...
0
votes
0answers
107 views

Post Filter clearing on pagination $_post

I have a form, in which users can select what taxonomy they want the posts filtered by. It works fine except that it doesn't paginate. When I click on the next page of results, it clears the query. ...
0
votes
0answers
56 views

Custom Post from Custom Query with Multiple Custom Taxonomy Terms with Pagination

I have a page template like having code, (on the link below) http://pastebin.com/mZaRLKp2 Actually it's the problem of getting custom post list having all the multiple custom taxonomy terms with ...
0
votes
0answers
25 views

Frontend Uploader plugin: how to deal with taxonomies?

I am using Frontend Uploader plugin. I want to know how to add taxonomies to an attachment on the form. Here is the registered taxonomy: function create_image_taxonomies() { $labels = array( ...
0
votes
0answers
86 views

Create Child Taxonomies Automatically

Actually is not child taxonomies to auto create them without something triggering something, I'm looking for a solution for when a taxonomy is published some other taxonomies of my choice will be ...
0
votes
0answers
46 views

Redirect page to first custom taxonomy term archive

Is there a way to redirect a page to the archive page of the first term in a custom taxonomy archive? For example I want the page "Videos" to redirect to whatever term is first (Ordered by it's ...
0
votes
1answer
87 views

Taxonomies not appearing in columns on dashboard

I'm having some issues trying to get taxonomies to appear in the post columns on my dashboard, the custom functions appear correctly, just not the taxonomies, anyone see where I'm going wrong? Here is ...
0
votes
1answer
534 views

How to Order a list of taxonomies? orderby?

I am using this code to fetch a list of child taxonomies. I want the order displayed to be alphabetical, but it is not! Any help in figuring out how to do it? I guess ordering it before returning it ...
1
vote
1answer
420 views

Custom Taxonomy as checkbox or dropdown

I have registered a custom tax to my CPT. On the edit screen the tax meta box appears with an autocomplete field. Is it possible to display it as checkboxes or dropdown instead?
0
votes
1answer
21 views

How can i set post_per_page in my taxonamy?

<?php $myquery['tax_query'] = array( 'relation' => 'OR', array( 'taxonomy' => 'brands', 'terms' => array('ALL'), 'field' => 'slug', ...
1
vote
0answers
126 views

Get url.com/post_type/taxonomy/term work!

I'm having trouble get what I want by mixing custom post types and taxonomy. I want to run this: www.url.com/post_type/taxonomy/term In my case this: www.url.com/dossier/theme/sante (sante is a term ...
0
votes
1answer
21 views

How could I write a get_categories_by_year() function?

I need to write a function to get all the categories for a given year. Since the creation date of a taxonomy isn't stored in the database, I'm not really sure what to do. My initial thought was to get ...
0
votes
0answers
65 views

Set terms programmatically

I would like to use wp_set_post_terms() or wp_set_object_terms(). I think I read all the codex and all forum post about these functions and I still can't make them work. I've a taxonomy named store ...
0
votes
1answer
25 views

Custom Post Types - Taxonomy and Customization

I'm trying to learn Custom Post Types and I have some questions. I'm trying to add a categories menu but that doesn't seem to be working for some reason - I don't get an error or anything. Here's my ...
1
vote
1answer
405 views

How to set individual capabilities on a taxonomy? Or how to re-register an existing taxonomy?

The default taxonomy, category. By default, only those with the edit_posts capability can assign categories during post creation/editing. I have a role with very limited capabilities. I want to let ...