Since WordPress 2.3, plugin and theme authors have had the ability to create custom taxonomies-- essentially specialized "categories"-- to help organize information.

learn more… | top users | synonyms

0
votes
1answer
70 views

Remove custom post type slug but keep related category taxonomy permalink

struggling as well with custom url rewriting for custom post type taxonomies. Here is my requirement: domain/mycpt_category/postname/ It's well documented here and in several SE threads removing ...
0
votes
2answers
38 views

Display taxonomy term only if there's a value

I have a post type which I want to add some taxonomy values (tags) Example Post Type One City: London, Paris Color: Red, Yellow Language: In the example above, Language doesn't have any value, ...
0
votes
1answer
27 views

Custom Taxonomy is disabled on Edit page

I created a custom taxonomy that it is being used for the product post type of woocommerce. For some reason when you go to the edit screen it is appearing disabled. This is the code that I'm using ...
0
votes
1answer
25 views

Need some suggestion/help with custom post types project

i am working on some project where i have custom post types for management courses. I have create new roles (for users) : teacher and student. Now the quasions is what is the right way to assign one ...
-1
votes
1answer
33 views

Advise on Custom Taxonomies and Structure

I am building a sporting website with the following structure Categories Events (Like Superbowl 2017) Deals (Posts like "Fly to USA to Watch Superbowl for $1000" etc) News (Posts like "Sanfransisco ...
0
votes
0answers
30 views

Pagination custom post type & custom taxonomy

I'm having a problem with my pagination for the category page of my custom taxonomy. This page displays custom post types on the first page of the category. But when I try to go to the second page, it ...
0
votes
1answer
17 views

page not found for example.com/custom-post-name

i have created custom post type: jobs custom taxonomy : jobs_division I wanted url like Custom permalink structure: /%custom-post-type%/%custom-taxonomy%/%post-name%/ I have registered custom ...
0
votes
0answers
35 views

Using WP Query to combine posts and taxonomies

I'm trying to use wp_query to create an index of posts, but I want to combine post titles and a custom taxonomy to create this output on the page: Cheese (a single post title, arranged alphabetically)...
0
votes
0answers
24 views

WP-API select custom taxonomy when creating a post

I am using POSTMAN to test out some API Routes using WP-API. I have created a custom post type called timeslot and have associated a custom taxonomy called location to that post type. When I am ...
0
votes
1answer
35 views

Problems with taxonomy quick edit box

i've some problem with customization of quick edit box in a custom taxonomy page. This is my code: function lnw_quick_edit_custom_box($column_name, $screen, $name) { if ( $screen !== 'edit-tags' ) ...
0
votes
1answer
63 views

Display posts grouped by post type in taxonomy.php

I have two Post Type('newpost' and 'book') associate with custom taxonomy(newcategory)(writer1, writer2, writer3...) I have need to show each custom post at separate style with Post term. My code ...
1
vote
1answer
66 views

Meta description - template code to get category description

Below is the code I wrote for header.php so that the description for a product category can be obtained and used for the <meta> description tag when viewing such a "page" on the site. Is ...
0
votes
1answer
57 views

How add body_class from wp_termmeta

I need to assign a class to the body for woocommerce categories. What I've done: // add the fields when the term is created add_action( 'product_cat_add_form_fields', 'add_product_cat_class_field', ...
0
votes
2answers
150 views

User role permissions based on taxonomies

I was wondering if it's possible to set up user roles in a way that means that users in certain groups can ONLY edit posts that have a specific taxonomy assigned to them e.g: Properties (Post Type) ...
0
votes
1answer
63 views

Failure to add term meta

I'm working on a modification to a custom taxonomy that would allow content managers to specify a numeric order in which the terms shall appear in a widget. They can't rely on the alphabetical order ...
0
votes
1answer
47 views

Custom button on custom taxonomy listing page

I want to have a custom button at custom taxonomy listing page. Please see the screenshot, I need a button so that I can export all my terms. I am not able to find any hook to do something like ...
1
vote
0answers
41 views

Category base to url in custom post type/taxonomy

I'm building a recipe site that uses custom post types for recipes. So I searched for including the custom post type categories in the url and found a solution below by Milo. It rewrites the url and ...
0
votes
1answer
16 views

Advice on Categorization for a Custom Post Type

Here is the scenario... Say I currently have 4 different car brands and 4 different locations. Ford, Chevy, Honda and Toyota Location 1, Location 2, Location 3 and Location 4 Each car brand will ...
0
votes
1answer
53 views

How to get CPT category checkbox list and show post of selected(multiply) checkboxes via ajax?

I want to create a plugin that outputs Custom Post Type category checkbox list(as in back-end WordPress) to show CPT posts that contain selected on front-end categories(multiply select) after pressing ...
0
votes
0answers
35 views

Is there a way to choose a parent before a child in a custom taxonomy?

I have a site with a custom taxonomy that is hierarchical. I want to be able to allow the users who have access to the backend post editor to choose a parent term first, then have only that parent's ...
0
votes
0answers
46 views

Create product configurator

I am building a product configurator tool where users can select mutually exclusive/inclusive options and I want to store their configuration at the end for retrieval later. As the user selects option ...
0
votes
2answers
34 views

Hide custom taxonomy from easy admin

I'm running a website that uses EasyAdmin (for user content generation). I created two taxonomies (via functions.php) for my own needs, but now my users can see them when they are adding their ...
0
votes
2answers
46 views

Dynamically tax_query terms

To display all the categories name with checkbox from custom taxonomy called ct_category I have the following code: $terms = get_terms('ct_category'); foreach ( $terms as $term ) { echo '<li ...
0
votes
1answer
33 views

Custom Taxonomy Archives Page Errors

I have successfully created a custom taxonomy 'Authors' for quotations by adding the following code in my child theme's functions.php: /** * Add custom taxonomies */ function add_custom_taxonomies() {...
0
votes
0answers
15 views

Adding Value to Custom taxonomy from frontend

I am using this page template to create posts from frontend. I want to add a field in this template so that users are able to add value to a custom (non hierarchal tag-like)taxonomy called 'athelete'. ...
1
vote
1answer
36 views

Allow only 1 instance of each term in each custom taxonomy

I'm looking for a function that restricts the creation of each term to only 1 instance within each custom taxonomy. Each custom taxonomy may have the same term but the term may only occur once in each ...
0
votes
0answers
26 views

Custom Permalinks for posts with custom taxonomy

I have kind of a unique problem with permalinks and a custom taxonomy that I can't seem to find the answer to. I have created a custom taxonomy called "content_type" which is attached to the "posts" ...
0
votes
0answers
33 views

Loop through custom post type taxonomies

I have created custom post type products and I want to show categories on products archive. I have this code <div class="container"> <div class="boxes"> <?php $cat_args = array( '...
0
votes
1answer
55 views

save custom term - hook create_term doesn't work

i'm trying to save a custom term with my own informations. i tried the hooks: - create_term - created_term - create_{my_taxonomy} but nothing seems to work. when I save the term, it's only getting ...
0
votes
1answer
49 views

Custom post type custom taxonomy archive page name

How archive php file should be named? Url: mypage.com/gallerycategory/sport/ gallerycategory - slug of custom taxonomy of custom post type (name of custom taxonomy is gallery_categories with slug ...
0
votes
0answers
25 views

Filter WordPress custom post type with taxonomy

I'm new to word press I have create one custom post called product and have three taxonomy in it. 1.product type 2.location 3.category now i want to search product with all taxonomy selected by ...
0
votes
0answers
37 views

Automatically add a custom taxonomy (category) to a published post based on keyword in post title

As the question states: I would like to Automatically add a custom taxonomy (category) to a any post published or not, based on keyword in post title. Or add any post published or not to a specific ...
0
votes
1answer
14 views

Templates files for custom post type with custom tags

There is a task: Create a new post type (video) with its own post tags and tag page - separate from normal post. What I've done: // Create a new post type register_post_type('video', array('...
0
votes
0answers
23 views

How to make multiple taxonomies hierarchical?

I have 4 custom taxonomies - Board, Standard, Subject, Chapter for my edu blog. I want to make one taxonomy under the other like Board > Standard > Subject > Chapter for listing. I have already been ...
0
votes
1answer
37 views

Custom post type based on existing one

Im using a theme that comes with a portfolio post type and portfolio categories taxonomy. My problem is that I want my site to have 3 portfolio sections, each with its own category list. Can I ...
0
votes
0answers
29 views

Displaying Custom Taxonomies that match other posts taxonomy

Here is my setup....I have a custom post type that has 2 custom taxonomies (About Me & Likes). In my page templates I want to show related posts that have tags in the "About Me" section that match ...
0
votes
2answers
68 views

Template filter for custom taxonomy terms

I want to replace custom taxonomy term template with my custom template. Like using add_filter('single_template','customFun'); replaces single custom post type template. I have a custom taxonomy e.g ...
1
vote
1answer
13 views

Randomly Assign an Image's Alt Text Based on Data From Post

I would like randomly assign an image an alt text based on taxonomy entered by the user on a post that the image is attached if there is no alt text entered. For example, on a post that has an image, ...
1
vote
1answer
61 views

Custom taxonomy on users with UI

WP lets us register_taxonomy() with users as the object type, thus creating taxonomies mapped to user IDs rather than post IDs. Unfortunately this method is poorly documented and many features don't ...
0
votes
0answers
36 views

Create slug for Custom Post Type Under two Parent Page with WPML

I would like this structure, WPML plugin with subdirectories, event default one. Desire structure: /en/2016-xxxx-xxx/ -> Page with Custom Template /en/2016-xxxx-xxx/term1/ -> Page with Custom ...
0
votes
1answer
29 views

Create a a form for custom taxonomy terms

Currently i am displaying a list of my custom taxonomy (contenttags). These are displayed in a list using the code below, which then displays the posts under that taxonomy. <?php $taxonomy = '...
0
votes
0answers
8 views

Adding hook when post is submitted [duplicate]

i made a custom taxonomy named project and i wanted to add a validation during the submission of post. I want to check if the post has selected any terms under the project taxonomy. what can i do to ...
0
votes
1answer
60 views

Pods pagination erases my sub menu

I've build a taxonomy that holds the categories of a custom post type. This is going to be used to create a sub-menu called categories that is a filter to generate all the custom post types that have ...
0
votes
1answer
41 views

Get user created Woocommerce attributes ( taxonomies ) [closed]

On the admin side generating metabox data. function prod_a( $value ){ global $post; global $product; // This === null. Thus the query bellow. $args = array( 'post_type' =>...
0
votes
0answers
25 views

Increase category/term description lenght

I'm developing a site, where the best place to store information is category description or is better to say custom taxonomy term description. Good to store, good in use, but there are few terms which ...
0
votes
1answer
41 views

Create Admin Only Taxonomies?

Is there a way to create admin-only taxonomies in wordpress? I have some things I'd like to tag with private, admin-only terms (for various reasons.) Is there a way to do this? EDIT: Use case: I don'...
1
vote
2answers
48 views

How can i skip same post from taxonomy term?

I'm trying to retrieve the posts of specific taxonomy categories. I have two taxonomy categories. Category One Category Two In these two have some different and same posts. So when i retrieve the ...
0
votes
0answers
31 views

Complex sorting of custom-post-types

Custom post: people, custom taxonomy: department, each department has (optionally) a custom field (boolean): team leader Desired output; Heading: Department A Team Leader Department A People in ...
1
vote
1answer
109 views

Why get_posts() not returning only selected category posts from Custom Post Type?

I use widget plugin Getting the random post & URL via ajax. Thanks fischi for help to rewrite functions. Problem is that function returns all posts from CPT, so category select doesn't work. ...
0
votes
0answers
21 views

taxonomy terms are not retrieving

My custom post is "employee" Its taxonomy is "department" I made a widget for showing taxonomy terms. but it is not working. What did I miss? class Employee extends WP_Widget { function ...