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

learn more… | top users | synonyms

0
votes
0answers
5 views

Covert non-hierarchical taxonomy to hierarchical after the fact?

I have a custom taxonomy that was created by WooCommerce ("product_tag"). I'd like the taxonomy to be hierarchical so it behaves like categories instead of tags. I need to do it after the taxonomy ...
0
votes
0answers
6 views

How to display terms from two taxonomies in one php code?

Two taxonomies were added to posts : volume : in which admin enter the number of the journal volume for each post issue : where admin enter the number of the issue under which the post is published ...
0
votes
3answers
355 views

Remove category from query (show all posts in archive.php) pre_get_posts()

I am using pre_get_posts() to allow all posts to be displayed on any category archive. This is because I will provide a javascript sorting and filtering method using isotope.js. Any category page will ...
0
votes
0answers
11 views

How to get the last term from taxonomy?

working on a scholar journal in which publisher add issues to the "issue" taxonomy assigned with articles. i need to put a button (Current Issue) so when visitor clicks on it a page of posts assigned ...
3
votes
5answers
5k views

Get the first post term

How do I get only the first term of a custom post type. I can get all - no problem. This what I am using to grab all of them <?php foreach ($terms as $term) {echo '<a ...
0
votes
2answers
562 views

child_of not working in wp_dropdown_categories

I have wp_dropdown_categories working without setting child_of. Once I set child_of, all categories disappear. Here's my code, what should I do to enable child_of? function dropdown(){ ...
0
votes
3answers
1k views

Automatically Assign Parent Terms When A Child Term is Selected

I have deep hierarchical taxonomy and I want to have all parent term assigned when I select a child term. I need it for category structure on a online listing/classified site. CPT name: product ...
3
votes
2answers
8k views

How to change permalink structure for custom post type and it's taxonomies?

This is a repost of an earlier question I had, but I like to go into more details now to be able to fully solve this. So again, with (normal) posts changing the permalink is as easy as going to ...
0
votes
0answers
12 views

Taxonomy Term Variable within Foreach Loop

I have a foreach loop that cycles through all the terms of a specified taxonomy (product_cat in this case). I have the terms in a variable called $productTerm but I cannot get it work in one section ...
0
votes
1answer
766 views

Getting the parent from the wp_term_taxonomy

Is there a built in wordpress function that let's me look up the "parent" field of the wp_term_taxonomy table if I pass the TT_ID to it? Something like get_value ( $wp_table_name, $id_fieldname, ...
0
votes
2answers
525 views

List all taxonomy terms / Show links if posts are attached, else names

I'm looking for a way to list all the terms from a custom taxonomy. Only the terms that have posts attached to it should have links to the archive page. If there are no posts attached it should only ...
1
vote
1answer
676 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
2answers
314 views

Filter second dropdown (tax) based on first dropdown (cpt)

I've been googling and attempting this for over a week now with no success. I have a few custom post types (books, films, music etc), and a custom taxonomy (location). On my frontpage, I have two ...
-1
votes
0answers
14 views

Rewrite Rules for Custom Post Type Taxonomy Archive by Date

I am looking t this page here and it works pretty well for standard taxonomy archive rewrites and custom post type date archives. Archive page for custom taxonomy grouped by month How would I make ...
1
vote
1answer
16 views

Get and loop posts with all taxonomy terms

I created a page that displays the posts orderby comment_count. I have a custom taxonomy named 'authors'. I would like to display only the posts with taxonomy values. Not a specific term but simply ...
0
votes
1answer
16 views

Display custom_post_type with current taxonmy of a page

I've associated a taxonomy to pages and a custom_post_type. When i'm on a page with a said taxonomy term, I need to display a list of custom_post_type associated twith the same term. I'm using this: ...
0
votes
0answers
24 views

Showing list of custom posts of a custom taxonomy

I have a custom post type Movie and a custom taxonomy Genre with some terms (like Sci-fi). I want to create a custom template for show all the movies of a particular genre. I read that it's just a ...
0
votes
1answer
19 views

List sub-taxonomies from current taxonomy

I have a custom taxonomy called book with terms: 'science fiction', 'romantic', 'history' Each of these Taxonomies have 4 sub-taxonomies, that I need to display as a sub navigation. I'd like first to ...
-1
votes
0answers
41 views

Show only one subcategory

I am showing for my posts only subcategory, but some posts are in multiple subcategories. But I want to acomplish that each post will shown only one subcategory. For example my post is in 3 ...
0
votes
0answers
7 views

No results for taxonomy archive page

So, I'm making a taxonomy template page for a plugin, but I'm not getting any results from my query. I'm loading the template with this. function projects_categories( $taxonomy_template ) { if( ...
1
vote
1answer
38 views

Taxonomy terms sort by… Last name!

I have a custom Taxonomy named 'authors' where I insert additional authors. My question is: is it possible to list all the taxonomy terms order by "Last Name". If I order by name clearly it looks ...
0
votes
0answers
25 views

add_action priority and taxonomy used in plugin

I try to register my taxonomy in my plugin and use it after. So far I have done: function custom_taxonomy() { $labels = array( ... ); $args = array( ... ); ...
0
votes
0answers
70 views

Recent posts by taxonomy and filter by tag

I would like to display in the single page sidebar all the posts related with the Current Custom Taxonomy (taxonomy name: authors) and also filter the list of posts by a tag or category. I found this ...
0
votes
1answer
349 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
0answers
12 views

WP Query for newest post of each taxonomie of a custom post type

I'm trying and googleing since 2 days, but cant figure out how I can display my 8 needed posts. Details about my structure: I'v created an custom post type "projects" where all the posts about ...
0
votes
1answer
44 views

Display taxonomy posts

This seems super basic but cant find a clear answer anywhere. All I am looking for is the loop to display posts within a taxonomy. Say I have a custom taxonomy called custom_category and within that ...
0
votes
2answers
646 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
0answers
12 views

Sync Post Categories with Pages while maintaining ancestors

I'm attempting to automatically create post categories and maintain the post category hierarchy so that it mirrors pages that have been created while maintaining the page hierarchy. I have achieved ...
1
vote
4answers
849 views

How to sort list of custom posts to get view like a tree of posts under categories and their children's categories?

I'm new here and my english isn't perfect so I'm sorry for this :) I'm here because I'm workin on site with post list sorted by category and I have problem with sort out my posts in categories and ...
0
votes
1answer
25 views

How to Register and Display Widget for Custom taxonomy

I have registered a Custom Taxonomy Named as Album, Now i want to register and display a custom widget like category to display recent 'x' albums with thumbnail on my sidebar. Below is a piece of ...
0
votes
0answers
18 views

Taxonomy ID change after edit

Here is my problem. After editing a taxonomy - not custom one, just default Categories, ID of that term is changing. I have no idea why, it's not theme problem, it doesn't look like plugin either, ...
0
votes
1answer
19 views

Display Taxonomies in loop with template args

I want to display the taxonomies within the loop but with customized template. Here is my code: if ( have_posts() ) { while ( have_posts() ) { the_post(); $args = array( ...
1
vote
2answers
48 views

Display latest x posts from all categories in Custom Post Type/Taxonomy

I am attempting to display the latest x posts from all categories using a custom taxonomy called 'case-studies' in WordPress. I have managed to output all the category names as heading links I have ...
1
vote
2answers
991 views

Custom Post Type Taxonomy Filters

Im really struggling to piece this functionality together, and hope someone can help or provide snippets to get me there. So I'm creating a section on a website where stories are published, I have ...
2
votes
1answer
44 views

what are terms and taxonomy and how they related to post and how these three are stored in database

I am newbie to wordpress. I want to understand terms and taxonomy in wordpress. My questions: 1. What are the terms and taxonomy in wordpress? 2. how terms and taxonomy relates to post and how post , ...
0
votes
2answers
2k 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
18 views

WP 4.3 - Categories doesn't show on the menu at all on different accounts

I'm having an issue where the Categories Taxonomy is showing on one admin account but is not showing on another admin account with the same accessibilities/privileges. What could prevent it from ...
1
vote
1answer
426 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: ...
1
vote
1answer
2k views

How to display custom taxonomies with links in filter menu?

Since two days I am trying to solve a problem with custom taxonomies (categories). I have a Custom Post Type called 'Portfolio' and it works as expected but a problem is with my hierarchical taxonomy ...
0
votes
2answers
22 views

Question on using custom structures for categories

Im trying to create a topics "section" similar to what Justin Tadlock has on his site but i'm not sure how he is doing this. Categories? Tags? or what? I tried changing the Category base to topics as ...
0
votes
0answers
16 views

Custom Post Types sharing same taxonomy

I've created 2 CPT (with Types): rivenditori and articoli. They share the same default WP taxonomy: category. I have been looking for a solution, but still nothing is working. What I get now is that ...
1
vote
2answers
2k views

How to add images to taxonomies?

Q: Is it possible to add images to all of my taxonomies (default and custom ones)? Note: I do not want to use any plugins (not my favourite solution for design related matters). Usage: I want to ...
1
vote
2answers
1k views

Get posts of ONE taxonomy term of custom post type

I have a custom post type called portfolio and a taxonomy called locations. In the taxonomy I have various terms, like paris, berlin, london etc. How can I get only the posts which are related to ...
0
votes
1answer
603 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
363 views

Custom Taxonomy Not Saving in Front End Post

I am trying to create a front end posting form that will allow users to create a post when schools are closed. I have 4 custom taxonomies closed_schools, study_open, safe_arrival, hour_delay. each has ...
0
votes
0answers
16 views

Taxonomy terms by post type and category?

I'm trying to return the terms of a taxonomy that is used by a custom post type in a specific category, I can return all the terms of the taxonomy but I want just the ones used by that post type and ...
0
votes
0answers
20 views

How can I achieve this site/url structure

Can anyone help me achieve the following. I have two custom post types, 'stores' and 'offers'. stores contain 'stores' one level deep. e.g. site.com/stores/store1 site.com/stores/store2 I then ...
-1
votes
1answer
94 views

Display woocommerce product_cat child terms with thumbnails

I was wondering if someone could give me a hand. I would like to display the child categories of my woo commerce store categories along with the thumbnails I have set for them in my dashboard. I have ...
0
votes
2answers
31 views

Wordpress implode & wp_insert_post question

Just a few days ago I've started working on my new wordpress based website. I have a plugin which provides a Cars Database. I want to auto-fill my custom fields and taxonomies by taking info from ...
0
votes
0answers
26 views

wp_editor doesn't work in taxonomy add page

I have added a custom field in taxonomy create page. $settings = array('wpautop' => true, 'media_buttons' => false, 'quicktags' => true, 'textarea_rows' => '15', 'textarea_name' => ...