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

learn more… | top users | synonyms

3
votes
1answer
1k views

How does Woocommerce store variation attributes, and how can they be retrieved per-variation?

I am trying to pull out a list of product variations from a Woocommerce installation, with their attributes - something like this: product id variationid name color size 5 1234 ...
2
votes
1answer
202 views

Custom taxonomy on permalink

I have a long time problem and look forward for your help. I have a custom taxonomy of "city" (it is no hierarchical like tags). I just would like my URLs to look like this: ...
2
votes
1answer
60 views

How can I get WP to build a feed based on multiple taxonomy terms

Currently, the best way to get a feed generated for a single taxonomy term is by letting wordpress generate the content automatically: example.com/wordpress/feed?tax_slug=term_slug However, is ...
1
vote
1answer
103 views

wp_insert_term doesn't work with custom post type's taxonomy

Here is the problem I am having: I have a custom post type called "weddingguests" This custom post type "weddingguests" has a custom taxonomy, "friendsof", hierarchic I want to programmatically ...
1
vote
1answer
100 views

Conditional statement for if archive page has posts which contain certain taxonomies/categories/tags, show those terms

I am using Isotope to filter posts on the fly from my archive pages. I have a Custom Post Type called "art". On the sidebar, I've created links to yearly archives on my sidebar, i.e. 2014, 2013, ...
1
vote
1answer
25 views

How can I setup a relationship using categories in WordPress?

I am trying to setup a relationship between a "People" post type and a "Work" post type. For example, I want to have a structure like this Person 1 - Work - Work 1 - Work 2 Person 2 - Work ...
1
vote
1answer
220 views

How to get the depth of a category's subcategories

I'm looking to get the depth a category's subcategories. Suppose I have a category 'grandparent' which has a subcategory 'parent' which in turn has a subcategory 'child'. How do I get to integer 2? ...
1
vote
1answer
162 views

How to make checkboxes from taxonomy terms?

I can populate selectbox options like this: <?php $args = array( 'taxonomy' => array( 'country', ), 'hide_empty' => 0, ...
1
vote
1answer
117 views

How to save a multiple checkbox array into a non-hierarchical taxonomy

I'm using apptheme jobroller theme and trying to manipulate its Edit Resume page. I want to show a specific taxonomy (resume_specialities) as a set of multiple checkboxes and enable users to check ...
1
vote
1answer
74 views

Custom Taxonomy Query

I have setup two custom taxonomies for a custom post type that I have created. The post type is called beer, and the two taxonomies are country and brewers. I would like to list them like this. ...
1
vote
1answer
87 views

Taxonomy in URL

I have a huge problem: I want to have nice URL's on my Homepage. I got a custom post type and taxonomies. Now I want to have a URL like that: www. mydomain ...
1
vote
1answer
183 views

Any way to assign Post Categories and Tags to Links?

I would like to assign post categories and post tags to the links in my 'Links' section, and (ideally) remove the link categories feature since it would be redundant. Anyone know how to do this?
1
vote
1answer
238 views

How can I add a meta-box to the posts editor containing all items of a custom taxonomy as checkbox?

I have a custom hierarchical taxonomy containing only two levels of items. First Level the title, second level items of the taxonomy. Is it possible to add a "meta box" to the posts editor of ...
0
votes
1answer
39 views

Notice: Trying to get property of non-object in : custom fields category

I have custom fields in my category. I'm using this tutorial to add custom fields to my categories. I'm trying to output one of the custom fields on my category.php template but I'm unable to do so. ...
0
votes
1answer
34 views

Is there a WP function to get taxonomy name from taxonomy_term_id?

I need to get the taxonomy name from the taxonomy_term_id. I am currently using the following to get it: global $wpdb; $term_taxonomy_table = $wpdb->prefix . "term_taxonomy"; $taxonomy = ...
0
votes
1answer
27 views

get_term and get_term_by returning null or false eventhough the term exists

I am trying to use the action hook delete_term, delete_$taxonomy, among other hooks that delete a term but they are presenting the same issue. For example: 1234 is an existing term in the favorite ...
0
votes
1answer
35 views

Taxonomy.php how to show post only in current taxonomy with wp_query?

Having troubles to get my taxonomy.php working good. I use a taxonomy.php to list all my posts in a specific category but it shows every post I have in all categories. Here is my code: <ul ...
0
votes
1answer
22 views

insert a taxonomy for a custom post type

I have been created a custom post type and create a taxonomy for it, below is the code which i used to create those: //create custom post type of jobs add_action( 'init', 'create_jobs' ); function ...
0
votes
1answer
58 views

Taxonomy.php error appearing in the header of my site

It references line 231 of the taxonomy.php file (See image) and all it says on that line is: * Checks that the taxonomy name exists. * * Formerly is_taxonomy(), introduced in 2.3.0. * * @package ...
0
votes
1answer
77 views

Custom Roll/Custom Post Type - Can't Select Categories

I am using Justin Tadlock's Members plugin 0.2.4. I have a custom user role "Author" that I am granting permission to post a Custom Post Type "blogpost". The Author can post and edit the CPT blogpost ...
0
votes
1answer
51 views

Remove taxonomy menu without removing the metabox?

I'm creating a custom taxonomy for a CPT and I need to remove the ability to create new terms for this taxonomy. I would like to know if there is a way to remove from admin menu (show_ui => false?) ...
0
votes
1answer
22 views

Help me add Taxonomy to byline

The following is my code for adding a byline to a post. Can you please explain how I can get my taxonomy onto this. The taxonomy is destination. /********************* CLEAN BYLINE ...
0
votes
1answer
34 views

Set terms in a custom post

I have a custom post "artist" and a taxonomy/category "artist category", and i want to create (by development) a new post and set the category of the artist but it doesn't work. I have tested it with ...
0
votes
1answer
47 views

How to display elements of different post types?

What happens is: I have a custom post type called "placas" and have an associated custom taxonomy called "firmas" and this taxonomy is the terms "LG", "AOC", "Panavox". I want to show a certain ...
0
votes
1answer
22 views

Custom Taxonomy Template Variables Available?

I have a custom Taxonomy sports and want to edit the front-end display. I have got taxonomy-sports.php and used this code to get the data on the taxonomy, but I feel like it should already be ...
0
votes
1answer
33 views

Using a taxonomy value as part of a post URL

I'm working on a Real Estate site using the following permalink format for properties: http://www.site.com/property/1330-5th-avenue (property is a custom post type for listings) How can I ...
0
votes
1answer
135 views

chained drop-down menu for custom taxonomy using chained.js — not quite working

So, Im trying to get a chained select to work to select a state then a city with that state. (2 fields). Here is what Ive got: First my function to create the menu using get_categories(). First ...
0
votes
1answer
40 views

Random post order and taxonomy filter

I have category page where I display articles in a random way. There's a taxonomy by city in my articles. So at the top of my page, there are some links in order to display the category with taxonomy ...
0
votes
1answer
13 views

How to setup a taxonomy that can have only one post assigned to it?

I have a Custom Taxonomy of, "Show on Front Page". I would like only one post to be assigned to this. So if I went and created an new post and checked the "Show on Front Page", the previous post that ...
0
votes
1answer
61 views

List post from current taxonomy children

I have a custom post type and a taxonomy with children, with a template file named taxonomy-productcategories.php. On this i want to list all children with their posts. Child taxonomy 1 Child ...
0
votes
1answer
108 views

Don't display taxonomy if empty

I'm using the following code to display my custom post taxonomies: function display_post_taxonomies( $content ) { if( is_single() ) { $args = array( 'public' => true, '_builtin' => false ...
0
votes
1answer
154 views

Custom Post Type Taxonomy Term Order by Title

I have a custom post type of Clients. The "Client Categories (taxonomy terms)" are called via taxonomy-client.php. I'm able to get the results to output as expected but I can't figure out how to get ...
0
votes
1answer
39 views

Possible to register multiple custom taxonomies in one function?

I'm registering 7 custom taxonomies in my functions.php. Since each function uses the same labels and arguments and is attached to the same Custom Post Type, I'm wondering if it's possible to register ...
0
votes
1answer
43 views

using post_type with meta_query

I'm setting up a basic slideshow and want to loop through the custom post type “Projects” and display only projects with a photo attached - <ul class="slides"> <?php $args = array( ...
0
votes
1answer
214 views

Woocommerce Category Structure with Genders

I'm currently developing a clothing site using Woocommerce. It has 3 sections: Mens, Womens and Youth Each of those sections shares almost all the same categories, however I currently have the site ...
0
votes
1answer
80 views

Error after updating to WooCommerce 2.0.15

Warning: in_array() expects parameter 2 to be array, null given in /home/semprebemcasados/www/wp-includes/taxonomy.php on line 2092 Warning: Invalid argument supplied for foreach() in ...
0
votes
1answer
95 views

Taxonomy Category category.php not working

I have created custom post type, taxonomy and categorys. When viewing the category it seems to be using index.php and ignoring the WordPress template hierarchy. Any ideas why category.php, ...
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 ...
0
votes
1answer
257 views

Permalinks for Taxonomy and Custom Post Type

Have the following situation here: Custom post type: 'recipes' Taxonomy for custom post type 'recipes': 'receitas' One of the taxonomies slug: 'receitas-whoopie-pie' The permalink structure MUST be: ...
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', ...
0
votes
1answer
498 views

Custom Taxonomy with tax_query

So I've created a custom taxonomy type with a plugin (CMS Press) and now I'm trying to get all of the posts with the taxonomy terms in that taxonomy. My get_posts looks like this: $args = Array( ...
0
votes
0answers
77 views

Creating taxonomy.php

I trying to create my taxonomy.php from this code: <?php $posts_per_row = 4; $posts_per_page = -1; $pageURL = 'http'; $post_type = 'radio'; if ($_SERVER["HTTPS"] == "on") ...
0
votes
0answers
35 views

Auto create child taxonomies when Parent taxonomy is created

As the title says...How can i have child taxonomies to be automatically created when a parent taxonomy is manually created, Like this Parent Taxonomy : USA ------------------> Manually created ...
0
votes
0answers
136 views

Get posts under a category with SQL

How can I retrieve posts under a category with plain SQL with out using WordPress native api's like get_pages? My Wordpress table wp_terms contains a term named Restaurants. I want to list the post ...
0
votes
0answers
194 views

Display parent taxonomy name and list child taxonomies below it?

I have the following taxonomy structure: Rich Media course prep demo modules Moodle Setup reteaching an old course teaching new course I want to display the parent tax name, and the child ...
0
votes
0answers
124 views

How to exclude 2 Portfolio Categories from page?

I want to exclude 2 Portfolio categories (IDs 4 & 23) from a page using the code below but it still displays all categories. Similar code works for 'Posts' but not for 'Port' - can anyone see what ...
0
votes
0answers
191 views

Modify wordpress plugin to auto complete on taxonomies instead of title

I've been trying for hours to modify this plugin to work with custom taxonomies instead of post titles and/or post content http://wordpress.org/extend/plugins/kau-boys-autocompleter/ Added the code ...
0
votes
0answers
112 views

Special Query: Title, Terms, Content - %LIKE%

I'm working on a them theme that is search-heavy, and my users are putting huge priority on an improved search function. I think I will have to use a special direct query to search these things: ...
0
votes
0answers
54 views

How to create a structure in wordpress for parent and child relationships contents

Could any one tell me how to do the following structure in wordpress whether using taxonomy, term , post or page Example : Parent A -- Title -- Description B -- Title -- Description C -- Title -- ...
0
votes
0answers
56 views

Tags with multiple words won't display

I'm working on a custom wordpress theme and I'm having a weird issue with post tags. At the bottom of a post the user can attach tags to link to related content. single word tags work just fine ...