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

learn more… | top users | synonyms

2
votes
2answers
37 views

Convert IPTC keywords to blog post tags

I'm a total newbie regarding to wp or coding or anything like that but I manage to get things done with a bit of reading. I need a way to convert IPTC extracted keywords that are attached to it's ...
0
votes
0answers
8 views

multitaxonomy in one metabox

I want to add meta box in custom post type. but i nees to add in this meta box two custom taxonomy Is any why for add one meta box that contain two or more custom taxonomy?
0
votes
0answers
12 views

Design: year of work creation: custom field, tax, something else?

Let's say I have to build a site for publishing old books and manuscripts or histories about those books and manuscripts. For many of them they knows a year of creation/publication, but for many ...
0
votes
1answer
28 views

Get most recent post for every term in a given taxonomy type

I'm looking for an efficient way to retrieve the most recent post from every term for a given taxonomy type. I found this question, which provides the same solution I came to on my own: $terms = ...
1
vote
1answer
24 views

How to get the post type from a category id?

I am trying to find out the post type from a category id. Suppose that, when i am opening a category page localhost/project/foobaar/category/pen I want to know the post type to which category - ...
0
votes
0answers
8 views

Menu not showing while using filter hook for custom posts

I have a custom post type named event and each event has a meta value named event_date. event post type has two custom taxonomy event_category and event_location. On the homepage I'm trying to show ...
0
votes
1answer
47 views

Get all taxonomies for all post types

I would like to get all the available taxonomy for each (custom) post type. My aim is to list for each post type, each taxonomy like category, tag and for each of these taxonomy to get all register ...
0
votes
1answer
50 views

Taxonomy search/filter with multiple taxonomies and multiple taxonomy terms

I am trying to build an advanced search form that allows users to select from two taxonomy based drop down menus. Each taxonomy drop down has taxonomy terms from which the user can select multiple ...
0
votes
0answers
11 views

Getting associated taxonomies

I am in a bit over my head with this one, so I'm hoping someone can point me in the right direction. Project Background I am working on a project that involves a complete overhaul of a site that ...
0
votes
1answer
26 views

tax_query not working properly with get_posts

Here are my args: $args_home = array( 'post_type' => array('news', 'jobs'), 'posts_per_page' => 12, 'meta_query' => array( array( 'key' => '_thumbnail_id' ...
0
votes
1answer
19 views

Missing posts in a query

I've got this loop where I need to grab a custom post type, get a taxonom, then for each term in taxonomy I need to output all posts. They are all output in a gallery, where taxonomy term is the ...
0
votes
1answer
35 views

Duplicate Custom Post Type and Taxonomy Slug

I've seen a few questions that are very similar, but I haven't been able to get an exact answer, so I'm going to explain my situation here. Quite simply, I need the following url structure: ...
0
votes
1answer
20 views

Creating a Taxonomy Page [duplicate]

I am having a hard time wrapping my head around the way to set up a taxonomy template page. My goal is to create a taxonomy archive of a custom taxonomy I created. The page would only need to contain ...
0
votes
0answers
14 views

How to create a collection of terms used by posts from wp_query

I am creating a custom search results page that has a WP_Query that looks like this: $args = array( 'post_type' => 'manuals', 'posts_per_page' => -1, 's' => ...
0
votes
1answer
16 views

switch statement for taxonomy content

I'm trying to check if a taxonomy in a post matches a string, however my code isn't working and it's always outputting the first item.. $i=get_the_term_list($post->ID,'tax-athlete'); switch ...
0
votes
0answers
6 views

WordPress Mysql DISTINCT meta_data with custom post and taxonomy

i've a problem with mysql query on my wordpress database. I have post_type is : "product" and taxonomy is "cat" I've custom fields: packagename At moment I have this query that show all post type is ...
0
votes
3answers
48 views

How to add HTML5 'required' attribute to wp_dropdown_categories() without JavaScripts?

I'm using wp_dropdown_categories() for populating <select> field with custom taxonomy terms. If the code is like below: <?php $args = array( 'show_option_none' => __( 'Select one', ...
0
votes
0answers
9 views

Create multiple taxonomy archives from the same tax and link term-links to them based off of the unique query

I have a CPT called "Clinical Trials." There are three taxonomies associated with "Clinical Trials" —"Locations", "Cancer-Types", and "Status". I have a query set up to return a list of all ...
0
votes
1answer
29 views

Using init hook for register_taxonomy is causing invalid_taxonomy in wp_insert_term()

I'm developing a plugin and I've problem with inserting new term to my custom taxonomy. <?php add_action('init', 'create_tax', 0); function create_tax() { $args = array(...); ...
1
vote
1answer
15 views

conditional statement based on terms

I was wondering if someone could help me out. I have created a custom query to retrieve in a custom single.php to retrieve posts which have the same custom taxonomy term and display them. here is the ...
0
votes
1answer
28 views

How to create TEMPLATES for TAXONOMIES? What I have to change in this code?

I've created custom post type and it's taxonomies. The code is: add_action( 'init', 'register_cpt_portfolio' ); function register_cpt_portfolio() { $labels = array( 'name' => _x( ...
0
votes
1answer
16 views

Adding inline help to category/taxonomy checkboxes in admin sidebar

My site uses blog categories and several custom taxonomies. I need a way to add 1-2 sentences of inline help above the checklist of terms in the admin. The custom taxonomies are associated with ...
0
votes
1answer
20 views

Custom Post Type parent slug as menu item

I created a Custom Post Type with the slug "Sell". I want to add this to my menu set up in Appearence. But it seems to work only for actual items created with this CPT. But I need the menu link, ...
0
votes
0answers
26 views

wp_list_categories doesn't return 4th level of children

On my website, I have a taxonomy, on each term page of which I list child terms. If there are children, immediate ones (depth=1) are displayed. If there are none of them, nothing is displayed. The ...
0
votes
0answers
20 views

Add image to taxonomy and output to homepage

I want to add an image to my taxonomy terms and then display the image on my homepage. On my index.php template it list the recent 10 posts and I want to show the taxonomy image of the post is in. ...
0
votes
1answer
23 views

Using custom taxonomies in a query

I'm using a plugin (IssueM) which gives the "articles" post-type a custom taxonomy called "Issues". I'm trying to return all "articles" which have the taxonomy issue-one set (which is the slug name). ...
0
votes
0answers
11 views

Independent categories to custom post type

When ever I create custom post types I face the problem that categories are shared with normal posts. Is there a way to keep these category taxonomies separate? For example this is my custom post ...
0
votes
0answers
35 views

Change order custom taxonomy

I've created a custom taxonomy BH Job Regions . Now I would like to change the order of the terms in my taxonomy list. Is there a plugin or so that I can do this in my backend? Drag the terms in ...
0
votes
1answer
7 views

How to restrict users in edit post that can just select exists tags? not add new

How to restrict users in edit post that they are just can select exists tags in select box and can not add new tags in Tags meta box?
0
votes
1answer
18 views

Trying to get property of non-object in shortocde

I'm having error in shortcode that "Trying to get property of non-object" on line no 130 Here is code: while ( $our_work->have_posts() ) { $our_work->the_post(); $termsArray = ...
0
votes
1answer
23 views

How to display term in archive page?

I want to display 'state' in my custom post type 'job' Archive page. Now my archive page only have title and excerpt. Can you tell me how to modify this 'content-job.php file? p.s. My post type is ...
0
votes
1answer
29 views

How to display data in archive page?

I have a custom post type 'job'. I created a archive-job.php . How can I display 'post date', 'city', 'state' in my archive-job.php page? Currently, my archive-job.php page displays a list of jobs ...
0
votes
1answer
39 views

Match and Merge Terms in Different Taxonomies

I have some author names held in two different taxonomies where the terms are formatted in two different but overlapping ways. There are about 400 terms in each taxonomy, associated with roughly 700 ...
0
votes
1answer
33 views

Alphabetical order in taxonomy.php

I created custom post types and a taxonomy-adhesion.php file (by copying the contents of the archive.php file). I wish the search result would appear in alphabetical order (or by title), but it does ...
0
votes
1answer
134 views

Programatically added attribute, set to 'show on product page' automatically. Woocommerce [closed]

Ive written a script to import products to a new install of Woocommerce. The products have attributes set up in the admin. This bit of code adds the attributes on import. ...
0
votes
0answers
16 views

How to use one taxonomy for different needs?

I have a taxonomy called "Names" (like tags) where I store people names and for example, I have a custom post type called "Photography" where I want to tag people who appears in each photography and ...
0
votes
1answer
35 views

Sorting on Taxonomy in archive page

<?php get_header(); ?> <?php //Define the function function customize_customtaxonomy_archive_display ( $query ) { if (($query->is_main_query()) && (is_tax('employee'))) ...
0
votes
1answer
30 views

Dropdown taxonomy lists in admin menu

I've added 4 taxonomy list to my wordpress backend: BH Job Experience BH Job Types BH Job Regions BH Job Tags These taxonomy lists are added under Job Listings like this: Now I would like to ...
0
votes
2answers
63 views

Admin: Navigation Menus do not show empty categories/taxonomies in the list's search tab

This is referring to the Admin area of Navigation menus It seems the normal behavior for building out Navigation Menus (Appearance>menus) is that when you expose categories or custom taxonomies, that ...
0
votes
0answers
18 views

I want to list my custom taxonomy with a custom post type in a plugin

I've created a simple plugin for a custom post type. What fully works with an arhive page and a single page. Now I'm trying to add ann taxonomy to the custom post type. // Register Custom Taxonomy ...
0
votes
2answers
25 views

Custom Taxonomy Terms in Menu lead to which page?

Hello All I was wondering if someone could help me out. I have created a custom post type along with a custom taxonomy. In this custom taxonomy I have created custom terms through the wp dashboard. I ...
0
votes
1answer
19 views

Unable to link categories to custom post type using standard function

I see a couple similar questions here, but they appear to be either directed at registration process, and involve editing core plugin - or they reference what I am already trying to do (but for me its ...
-1
votes
2answers
42 views

Convert Custom Post Types to Custom Taxonomies

I'm trying to convert a bunch of posts within a CPT to items within a Custom Taxonomy, where the post titles become the taxonomy names and the post content becomes the taxonomy descriptions. I have ...
1
vote
1answer
53 views

Custom post type taxonomy template

I've created a custom post type portfolio and a taxonomy of course. function taxonomies_portfolio() { $labels = array( 'name' => _x( 'Portfolio categories', 'taxonomy ...
0
votes
0answers
18 views

Should update a term, but new one is created instead

I have a piece of code that should update a term in a custom taxonomy, when custom post type's title or slug is updated. However, instead of updating a term, a new one is created. CPT: collection ...
0
votes
1answer
52 views

Proper way to update the slug of a taxonomy using register_taxonomy? [duplicate]

What is the best way to update the slug of a custom taxonomy that is registered by a plugin? I want to know the minimal amount of parameters for this or if i need to go and copy paste all of the ...
0
votes
1answer
30 views

Term specific featured post on taxonomy archive pages

I am trying to find a way to display a per term featured post on taxonomy archive pages. So say you navigate to url.com/my_taxonomy/my_term it should show the featured post of my_term above the ...
0
votes
1answer
83 views

Getting List of child terms from custom taxonomy parent

I am attempting to create section of my website footer that has link li of terms from a parent for a custom taxonomy I created. function add_custom_taxonomies() { // Add new "producttype" taxonomy ...
0
votes
0answers
19 views

List taxonomy in custom post type

Guys i need help about listing my custom taxonomy items in my post type. Like in the orginal Post type (category). I create taxonomy feed-categories and when i try to add new feed i can only to add ...
0
votes
1answer
20 views

Hierarchical list of custom taxonomy terms

I have a custom hierarchical taxonomy. I don't know how many nested terms will be in each term. What I want to do, is to list all taxonomy terms hierarchically no matter how deep each term is nested. ...