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

learn more… | top users | synonyms

0
votes
1answer
100 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
147 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
0answers
35 views

Rewrite rules custom post type

I created a new custom post type "video" and a new taxonomy "singers". There are 3 singers: Michael Jackson, Madonna, Eminem. I'd like change the permalink and so I'd like this URL: ...
0
votes
0answers
57 views

Custom Taxonomy Term in Custom Permalink Gives 404

I developed a small plugin to be able to add a custom taxonomy as a string to a post. I've included the variable in a custom permalink string. This string is used by Apache to determine if external ...
0
votes
0answers
26 views

How to choose the parent category that shows when using multiple custom categories [duplicate]

When a post is in two or most custom categories, how can I specify the parent category name that I want to show up? An example is the custom post type "tour". It is in the following categories: ...
0
votes
1answer
341 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
125 views

Query custom taxonomy for category including children

I've using the Events Manager plugin which creates a custom post type of 'event' and a custom taxonomy called 'event-categories'. I have the category 'courses' which has an ID of 43. I also have a ...
0
votes
0answers
15 views

Showing parents of taxonomy terms associated with a post OR showing only bottom-level terms associated with a post

I have a custom taxonomy structure associated with a custom post type on my Wordpress site (selling sheet music): It's something like this, to give some context: Flute ensemble 3-part flute ...
0
votes
1answer
258 views

get_terms function not returning anything

This has had me baffled for days so any help would be appreciated. I cannot get the function get_terms to return anything. I've tried the following code in the index.php, single.php and page.php, ...
1
vote
2answers
251 views

get_terms that have custom sticky field checked

I was able to add a extra custom field, named sticky, to a custom taxonomy, using the wp taxonomy meta plugin, like this: function YOUR_PREFIX_register_taxonomy_meta_boxes() { // Make sure ...
0
votes
3answers
185 views

How do I insert a post with custom post type and relate it to a custom taxonomy?

I'm trying to figure out how to insert a new post. I have a custom post-type (course) that is related to a custom taxonomy (categorycourses). I've managed to insert a post with custom post type ...
0
votes
0answers
66 views

Sticky (or any boolean field) taxonomies?

I would like to add an extra field to a custom taxonomy, wich I would use a little bit like sticky posts, this way I could have a menu with some special taxonomies, is that posible? I can't seem to ...
0
votes
2answers
1k views

Rename “Portfolio” slug?

I have a WordPress theme that I am working with called "Forte". Yes, it is a premium theme. I have reached out to the developer but apparently he doesn't really want to help in this situation. Well I ...
0
votes
1answer
83 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
0answers
59 views

Hide or redirect the taxonomy/category/tag page

I created a taxonomy brand with two categories: nike and adidas. What I need is to prevent the creation of the page for each category, like www.example.com/brand/nike/ or www.example.com/brand/adidas/ ...
0
votes
0answers
78 views

How to sync to custom taxonomies (tag structure)

I have two taxonomies: "Contributers" and "Narrators." I want to sync the terms in these two taxonomies identically, so much so that I wish to be able to click on "Edit Term" and see the information ...
0
votes
0answers
44 views

Show Child Taxonomies in Posts Dropdown

I've written a simple dropdown script and I am looking to expand it to include the child taxonomies and posts. I'm not quite sure how to accomplish checking if there are child categories for $tax_slug ...
0
votes
0answers
42 views

Different domains per custom post type or taxonomy

I'm trying to create 3 sites in one wp-admin basically, but they all have different domains and can cross reference each other (to form relationships via taxonomies, etc). http://test.org ...
0
votes
1answer
47 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
2answers
239 views

Multiple tag cloud filtering

I am writing a plugin which creates a custom post type and two associated custom taxonomies. The custom post type list/archive page should be filterable by terms in one or both taxonomies i.e not just ...
0
votes
1answer
157 views

How to display custom taxonomy and terms using/creating plugin template

I am working on a plugin which requires a custom taxonomy and 3 terms (Personal, Group & Pets). I already have the taxonomy set up with terms and some sample posts. I've created a template for my ...
0
votes
1answer
64 views

Don't repeat posts from children in parent taxonomy query

I have a query on a page and I want to prevent it from returning posts in the parent term that have one of the child terms of the parent. For example: Parent 1 Child 1 Post 1 Post 2 NOT Parent ...
0
votes
0answers
21 views

Can I get parent taxonomy name from term in advanced search plugin?

I am currently trying to advance a plugin that basically creates a form where you add your own required types of data that you would want to be searched. In my form I have a taxonomy and I want to ...
0
votes
1answer
95 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
2answers
78 views

Why is my post categories not displaying?

My post categories are empty. When editing or adding a post they are not displayed in the box. On the /wp-admin/edit-tags.php?taxonomy=category page none of the categories are displayed there either. ...
0
votes
0answers
18 views

Naming convention for taxonomies [duplicate]

I had a taxonomy called: wossom. And I was using taxonomy-wossom.php as the template file that will describe a term of this taxonomy. Now I need to change the name of the taxonomy to wossom-balag, so ...
0
votes
1answer
36 views

Using page title as a link to term archive

i want to do something like that (pay attention to line 4): $term_link = get_term_link( $term, 'genre1' ); if( is_wp_error( $term_link ) ) continue; echo '<li><a href="' . $term_link . ...
0
votes
1answer
73 views

Terms from current post custom taxonomy — excluding parent and only from a single parent term

The title sounds complex but this is quite simple. Hopefully the code for it is too. I have this custom taxonomy we'll call "Filters". ParentTerm A ChildTerm 1A ChildTerm 2A Parent Term B Child ...
0
votes
1answer
699 views

How to add images to taxonomy terms? [duplicate]

Could it be done or not? E.g. I want to be ble to upload an image when creating a new taxnomy term. So, when I create a new term called Mercedes in my custom made taxonomy called brands how can I ...
0
votes
1answer
153 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
0answers
171 views

Full permalinks with custom post type and multiple taxonomy depth

I'm really hoping someone can help shed some light on this for me, it's getting very confusing and seems no-one has answered a question like this yet. I have a custom post type (news) and a ...
1
vote
0answers
55 views

Automatically Query Parent Taxonomy

I have a custom taxonomy on my site that I query from the sidebar of the currently displayed term. Say I am on the Term X archives, then my custom post type of Products with the term of Term X are ...
0
votes
0answers
30 views

Store members in custom taxonomy or native user?

I've just started Wordpress-programming a few days ago, but I've been programming php 5-6 years. I've been writing some code -added custom taxonomies, custom post-types/fields etc. Now I want to be ...
1
vote
1answer
353 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? ...
0
votes
1answer
51 views

Multiple loops on a Search result page?

I have a custom template that displays search results based on a plugin. The wp_query contains all the taxonomy information to show the proper posts. How can I have two loops on the same results ...
0
votes
0answers
30 views

Filter custom taxonomy table

I am trying to make a limited admin panel for some users. I would like to customize the taxonomy menu so that there is only one term visible when a user has a specific capability, but also allow him ...
0
votes
1answer
119 views

Copy post taxonomy?

I'm rather new at Wordpress and I the thing I want to do is this: Create a taxonomy (courses) that works as exactly as POST but with the difference: I need some fields to be added for course (like ...
0
votes
1answer
659 views

get_category_link() for custom post type does not include custom slug rewrite?

I am getting a list of categories for a custom post type project using get_categories($args) with the following arguments: $args = array( 'type'=> 'project', 'orderby'=> 'name', 'order'=> ...
0
votes
1answer
458 views

Contact Form 7 - Populate Select List With Taxonomy [on hold]

With contact form 7, is it possible to populate a DDL (Selection List) with Custom Taxonomy Values? I want the user to be able to click the category they want to refer to from my Custom Post Type.
0
votes
0answers
32 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
652 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 ...
2
votes
1answer
61 views

Taxonomy Templates

I don't quite understand how to link to my taxonomy templates. Do I need to make a page-tempalte and query my terms from there? I'm using the taxonomy hierarchy currently: Taxonomy $labels = array( ...
0
votes
1answer
264 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
53 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
278 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
181 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 ...
0
votes
1answer
242 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
19 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
1k 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 ...
2
votes
1answer
2k views

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

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 ...