2022 Developer Survey is open! Take survey.

Questions tagged [taxonomy]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
5 views

Customize menu link for taxonomy in WP menu

I have a Taxonomy that I would like to change the link to in the WP menu. When clicking it goes to the Add Taxonomy page, like normal. What I would like to do is navigate to the Edit Page. In other ...
user avatar
0 votes
0 answers
6 views

How to change the author box selection on a post to a custom taxonomy

So instead of the author section pulling in 'Users', I need to change it so that the author box displays a selection of the terms from a custom taxonomy I have made. Is this possible to change?
user avatar
0 votes
0 answers
19 views

How to automatically create a terms based on each post of a post type

I am working on a music site which has custom post types- 'artists', and 'releases'. I have about 3,000 artists, and about 19,000 Releases in my database. It's been suggested to me that I should ...
user avatar
0 votes
1 answer
25 views

How to add custom meta to 'pre_get_terms'?

I have a custom taxonomy with custom meta. I have added the custom meta values to columns in the admin list page just fine. But if I search for values that are in these columns nothing is found. I'm ...
user avatar
  • 281
0 votes
0 answers
8 views

WordPress: Export/Import Yoast meta title & description to custom taxonomy

I want to export the Yoast meta title & description from a custom taxonomy with the WP All Export. Unfortunately there is no direct way with the plugin to do that. There is an extra WP All Export ...
user avatar
  • 145
0 votes
0 answers
28 views

WP query taxonomy optimization

Is there any way to speed this query? Noob here. SELECT wp_posts.ID FROM wp_posts LEFT JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) WHERE 1=1 AND (...
user avatar
0 votes
0 answers
17 views

Choose whether to automatically add a taxonomy with the same name as the post

I created a custom taxonomy within the blog post. It's called "FootNotes." I would like there to be a checkmark inside in the creation of the post that asks me "Are there any notes ...
user avatar
0 votes
0 answers
19 views

WordPress how to prevent URL encoding in URL of taxonomy terms

Is it possible to prevent WordPress from encoding URL with terms? I have a sample taxonomy term "iPhone5~iPhone7" and when I use it for the search function, it turns to "iphone5%ef%bd%...
user avatar
0 votes
0 answers
7 views

Get ACF taxonomy term and sub-term lists ACF blocks

I want to get list of parents and child terms from ACF field type Taxonomy. This things need to display as ACF blocks. i have tried many things to done this stuffs but but it's not working for me. ...
user avatar
0 votes
1 answer
22 views

Custom Post Types not queried in Custom Taxonomy archives or Native archives

I have declared a selection of custom post types as an array, allowing post_tags but not categories: // Add Multiple Custom Post Types add_action('init', 'all_custom_post_types'); function ...
user avatar
  • 29
0 votes
1 answer
22 views

Category post count is not correct

When I go to Posts > Categories, some categories show that they have a post. See screenshot. But there are no posts linked to that category. When you click on that "1"-number, no posts ...
user avatar
  • 125
0 votes
1 answer
13 views

WP_Query, Taxonomy, list of attached items to a Term, sorted

I have a Taxonomy, “Genre”. “Genre” has a Term, “advert”. I want my taxomomy template to grab all Custom Posts attached to that term, sort them by my last_name, first_name, short_title Custom Fields, ...
user avatar
0 votes
1 answer
19 views

Get List of Terms based on a given term (different taxonomy)

I have two taxonomy and a post type. Post type: Employee (employee) Taxonomy: Location (term example chicago, id 1) Taxonomy: Job Title (job-title) I want to list all job title based on a ...
user avatar
  • 7,585
0 votes
0 answers
6 views

Disable Category Taxonomy

There's a similar question to this posted back in 2013 (Completely disable categories), but the proposed solution doesn't provide information as to how to implement it (where do I place the provided ...
user avatar
0 votes
0 answers
17 views

CPT archive with WP native/core tax/categories

So for some reason this is oddly difficult. I need to have a CPT which uses the core categories between the CPT reviews and core posts as news. I've tried getting the CPT archives as just URL which is ...
user avatar
  • 67
0 votes
1 answer
17 views

Get Comma Seperated Taxonomy Linked Terms and Last Child Separated By "&" Instead Of Comma

I Want to List Custom Taxonomy Terms with Link and Separate Each with Comma but add "&" before the last term. Example: Drake, Migos, Ciara & Nicki I found this answer that shows ...
user avatar
0 votes
0 answers
10 views

Exclude post with taxonomy and from the terms (taxonomy & tag) posts count

Using the below code, i have excluded the taxonomy (slug:expired) from archive or tag or taxonomies pages in front-end. add_action('pre_get_posts','custom_get_posts'); function custom_get_posts($query)...
user avatar
  • 13
0 votes
0 answers
10 views

Duplicate slug/permalink issue while adding same post name

I have my permalink format set to /%taxonomy%/%postname%/ and I have books custom post type with Genre as a custom taxonomy. But the main problem is it is not allowing to add the same post name http://...
user avatar
  • 21
0 votes
0 answers
10 views

Page that lists publications by classifying them by taxonomy

I need a little help writing code. I have an "artists" CPT I have an archive-artists.php page with the code below, but I would need to add a "year" taxonomy. And that my artist ...
user avatar
0 votes
2 answers
22 views

How to makes changes on the shop/category/tag pages but not on the product pages in woocommerce?

I've recently added a plugin to have product filters (BeRocket) on my wordpress/woocommerce website. To display those filters on the page I made a widget and added it in my woocommerce.php page. It's ...
user avatar
  • 1
0 votes
0 answers
10 views

Getting more info about the taxonomy?

select * from wp_term_taxonomy join wp_term_relationships relation on relation.term_taxonomy_id = wp_term_taxonomy.term_id group by wp_term_taxonomy.term_id I am ...
user avatar
  • 1
0 votes
1 answer
25 views

Use get_cat_ID to retreive multiple category IDs

I am trying to use the names of categories stored in user meta (ie users' preferences) to control an on-page query’s parameters. $topicsofinterest = get_user_meta(get_current_user_id(),'...
user avatar
0 votes
1 answer
24 views

Question about link two types of data in wordpress

I have a problem and I'd a like a suggestion to solve it. I have two data(Architects and Projects) where both need to link each other, architects must have their own page as well as an archive page. ...
user avatar
1 vote
0 answers
18 views

extend HierarchicalTermSelector function with custom renderTerms

I want to hook into the editor.PostTaxonomyType filter and instead of HierarchicalTermSelector call my extended version that will render SelectControl instead of checkboxes. I found an old ...
user avatar
0 votes
0 answers
15 views

Change searching from world level to first letter

Iwant to change the search filter from word level to first letter in terms when creating custom post. How can change it ?
user avatar
0 votes
0 answers
27 views

Add Tags to a Custom Post Type from a FrontEnd Form

I have a code that allows users to submit content from the front end of the site, like this. if(isset($_POST['submit'])){ $title=$_POST['title']; $body=$_POST['body']; $difficulty=$...
user avatar
0 votes
0 answers
13 views

CPT : Next or Previous term link when has not adjacent post

My structure is like this : Book name (cpt) --- chapters (taxonomy) -------- chapter 1 (term) -------- Chapter 2 (term etc) I have some posts into "book" added in terms I wish in single-...
user avatar
  • 33
0 votes
0 answers
13 views

Calling an Archive Page with specific Tag/Tax ID

Hope I am explaining this correctly. I need to style a specific archive page with the taxonomy: dn_campaign_cat and the tag ID: 115; it shows as below on the front end. www.site.com/campaign-cat/...
user avatar
  • 1
0 votes
1 answer
22 views

How to show parent taxonomy using get_the_terms?

I have registered one custom taxonomy. I am using this code to show this taxonomy on single.php. But it shows parent and child terms as well. function showorganisation() { $terms = get_the_terms($...
user avatar
0 votes
0 answers
12 views

wp_insert_post custom taxonomy multiple Category not added

I have a custom post type jobs and a custom taxonomy jobCategory. wp_insert_post() and it works. When a user selects multiple jobCategory, only one selected category is recorded in the database. ...
user avatar
  • 1
0 votes
0 answers
27 views

Assign Multiple Values from Post Fields to Taxonomy Terms

I am working on a listings site where I need to take the post data of multiple fields and assign them as taxonomy terms. The site is built using Wordpress and Toolset. I have this working for one ...
user avatar
0 votes
1 answer
35 views

I need to add a filter to prepend the term 'National - ' to the post title if the post is tagged to multiple states

I am trying to add a filter to add the word "National - " to the beginning of the the post title if the post has multiple states that it is in. Here is a screenshot: I just figured out the ...
user avatar
0 votes
1 answer
42 views

How To Query For An Empty Taxonomy Field

I want to write a query that looks up taxonomies. One condition is that taxonomyA returns x, and a second condition is that taxonomyB returns empty. I don't know how to query for empty. This is what ...
user avatar
0 votes
0 answers
15 views

Strange behaviour of hierarchical taxonomy archive

Background: I have a hierarchical taxonomy and I'm trying to create a taxonomy template file that lists each of the child terms with the associated posts below each. So far I have managed to achieve ...
user avatar
  • 1,041
0 votes
0 answers
19 views

Rewrite slug for WP core taxonomies

I have been struggling with this for a while now... I have a custom post type named 'Blog' that uses the default post_tag and category taxonomies of Wordpress. $labels = array( 'name' => __('blog'...
user avatar
  • 1
0 votes
0 answers
10 views

how can send a parameter by click on gender-link to filter a post by gender and product taxo

In taxaonomy-product_category.php: $request_args = [ array( 'taxonomy' => 'product_category', 'field' => 'term_id', 'terms' => $terms->term_id, ...
user avatar
0 votes
1 answer
33 views

Set two terms for a post when they differ only by an accent

I face the following situation: after manually adding (in the backend) the terms with names (not slugs) Mânie and Manie, that differs only in an accent/diacritic (they are totally different words with ...
user avatar
  • 1,081
0 votes
2 answers
57 views

List custom queried terms in the edit-tags.php?taxonomy page

This is my first time posting a question here. I have this problem that I feel that I am soooo close to solve, but can't manage to do it. I have a custom taxonomy called "aplication" and ...
user avatar
  • 11
1 vote
1 answer
21 views

Custom WP Query: force entry for some taxonomy and have others optional

I am creating a search with a form to select specific taxonomies. The search requires 2 items to be entered, and then has 3 optional terms. All of these are custom taxonomy terms. So once the user ...
user avatar
  • 125
0 votes
0 answers
9 views

query variables for custom taxonomies

Is there a way to encode custom taxonomy and term as query variables in URL? I need it for my custom table derived from WP_List_Table, where I construct links to filter according to terms. For example,...
user avatar
  • 381
0 votes
1 answer
20 views

Enable taxonomies by post type in an array of CPTs

I learnt to add multiple custom post types via functions.php in an array, like this: add_action('init', 'all_custom_post_types'); function all_custom_post_types() { $types = array( array('...
user avatar
  • 29
0 votes
1 answer
45 views

WordPress Default Category and Custom Taxonomy Selected Attribute not Working After Searched in wp_dropdown_categories Array

I have Three Fields in the form, first is Default WordPress Category and two custom taxonomies. When I try to Search a Single field "Selected Attribute" Works Correct but on category, ...
user avatar
0 votes
0 answers
21 views

Show related products by attribute based and certain conditions

Getting a reference here, I want to display a "product collection" on related products based on certain conditions. Example : The product has a color attribute and a size attribute. The ...
user avatar
0 votes
2 answers
73 views

Display sibling categories on category page

I have a category page, how do i display this category sibling categories on this page as well? I know how to display children categories: <ul class="slider-container-list sub-categories-...
user avatar
0 votes
1 answer
54 views

Is possible hide hierarchical select dropdown created by jetsmartfilters? (only visual issue)

Is possible to hide child ("City") hierarchical select fields before parent ("State") choice? only visual issue. I did hide function in "JavaScript" but I couldn't join ...
user avatar
0 votes
1 answer
42 views

How to make HTML select options searchable

What could be easy way to modify source and to make that Select options searchable for attributes in product page? Something like while I typing, it suggest value. <div id="product_attributes&...
user avatar
0 votes
0 answers
21 views

Automatically adding tags and categories into Post Excerpt for searching

I have created a complete user front end posting system. Users post content that only they can view from a front end posting system. They can add tags and set a category. In order to be able to run a ...
user avatar
0 votes
0 answers
16 views

Do post types share the same records using the same taxonomy?

I have created a custom post type, so I attached a category & post_tag (default wp taxonomies) as its taxonomies. so if I insert any record to posts category (or post_tag) it appears to my CPT ...
user avatar
  • 1
0 votes
0 answers
33 views

Display acf taxonomy attachment

On wordpress, using ACF I've added a taxonomy field to the attachment to all images. I now want to display the taxonomy field in the html 'id="the-taxonomy">'. My main goal is using it as ...
user avatar
0 votes
1 answer
17 views

Finding id of taxonomy by name in custom post type

I have a custom post type called book-list. I get the name of the post type category from the link by $_GET['w_year'] correctly. I need to get the ID of that category name I'm not inside a post or ...
user avatar

1
2 3 4 5
39