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
0answers
15 views

Display the terms from multiple taxonomies in a Custom Post Type

I have a Custom Post Type and I have different custom taxonomies. Every taxonomy has one or more terms. For example: Custom Post Type: Activities | Taxonomy 1 | | Taxonomy 2 | | ...
0
votes
2answers
23 views

Order custom taxonomy hierarchy

I have some custom taxonomy for regions. Commonly it would look something like this. USA (parent) - Arizona (child 1) - - Phoenix (child 2) however, there will be cases where it will only be like ...
0
votes
1answer
8 views

Including taxonomy in searches

(Fairly new to WordPress, but I'm a React / NodeJS developer) I have a basic search function that search a custom post_type (listings). It makes use of the standard built in get_search_query and ...
0
votes
0answers
10 views

Filtering custom taxonomy category on admin side

Is there any hook, or maybe there is already a plugin for that. The problem: There are lots of categories and it is difficult to find through so many pages. I need: A dropdown selection filter which ...
0
votes
1answer
11 views

Different Sidebar for same Taxonomy

I am using a wordpress site with coupon theme i purchased it from fametheme. They used taxonomy to create store and coupons. In taxonomy (Store, Coupon) there are same sidebar. If i wrote in sidebar ...
-1
votes
0answers
11 views

WPBakery page builder query is not filtering my portfolio page by the taxonomies

WPBakery page builder query is not filtering my portfolio page by the taxonomies. It displays all of my portfolio post plus post that have a category of Artist. I want it to only display category of ...
0
votes
1answer
23 views

Display name of taxonomy once

What's the best way to only show the name of a taxonomy once? I use a taxonomy called show_category that has three categories: News, Reviews and Uncategorized. I have six posts: three in News, one in ...
0
votes
0answers
19 views

Custom taxonomy not functioning correctly

I am using some custom code in my functions.php to create a new custom taxonomy and then hoping to be able to create new and pick existing tags inside this custom taxonomy when editing a page. I have ...
0
votes
1answer
18 views

Pagination hitting 404 page on /page/4

This is a bit of a headscratcher. So, I am using the WP Download Manager Pro plugin that creates a custom post type wpdmpro. I have pages for each category, and using the loop, I loop through each ...
0
votes
1answer
20 views

How do I list custom taxonomy terms with the links?

I've the following code which gives the list of the portfolio category as text. What can I do to have them as links instead? thank you function thb_display_category_cus() { if ('portfolio' === ...
0
votes
0answers
41 views

I want to get term by term_name without taxonomy

Can I get the term by it's id without knowing to whish taxonomy it belongs? I have a meta field that stores term names, but doesn't store the taxonomy. However, all the get_term function have ...
0
votes
1answer
15 views

Wordpress - Form does not filter the results of taxonomies

I created a plugin that uses an array, specific to which posts I want to give my taxonomy so that I can create custom categories, the name of this taxonomy is: categoria We are talking about an event ...
1
vote
1answer
23 views

Custom taxonomy is crashing Gutenberg

I have a custom taxonomy, "Type" and I have it registered to my custom post type "Resource." But if I enable "show_in_rest" I get a JS error: TypeError: Cannot read property 'transientEdits' of ...
1
vote
1answer
29 views

Order wordpress taxonomy parent terms by their children count

I need to order parent terms by their children count: function sort_terms_by_children_count ( $terms ) { $sort_terms_by_children_count = array(); foreach($terms as $term) { $count = ...
0
votes
1answer
21 views

How do i get the link of the assigned taxonomy term?

So currently i have a taxonomy named 'blog-category' which contains the categories of the custom post type 'blogs'. On my home page i have posts that show their respective categories with them. I am ...
0
votes
1answer
18 views

How Do I Register Two Taxonomies with one Parent of the Other?

Trying to figure out the best way to do this. Hope I can get some help. So I am developing a plugin which handles a custom post type of cars. I am looking to add. A couple of category taxonomies ...
0
votes
0answers
18 views

Custom taxonomy named 'tag' return 404 page

I registered a custom taxonomy named 'tag', code below: add_action('init', 'reg_custom_tag'); function reg_custom_tag() { register_taxonomy('tag', array('my_custom_post_type'), array( '...
0
votes
0answers
26 views

High Load on Database Caused by Taxonomy

OUR RDS database is reading 100% CPU and over 100 connections. After investigation, we traced it to this query. SELECT object_id, term_taxonomy_id FROM wp_term_relationships INNER JOIN wp_posts ON ...
0
votes
0answers
9 views

how to display value from selected checkbox of multiple taxonomy

Example i create custom taxonomy like location and age if i have parent taxonomy of age with child of 18, 19, and 20. The format will be like these: Location - Paris - UK - USA Age - 18 - 19 - ...
2
votes
1answer
22 views

WordPress REST get all items without a taxonomy assigned

i am a bit stuck right now. What i want to achieve is doing a request to the api that returns all posts that do not have a taxonomy assigned. I can do this request to get posts from a specific ...
1
vote
1answer
28 views

Custom taxonomy forms for user profile

I followed this excellent tutorial made by Justin Tadlock . I can't update profile, it doesn't save to user profile : add_action( 'init', 'create_profession_tax' ); $post_type = get_post_type(); ...
0
votes
1answer
16 views

How to show the category filter that's shown on the 'All post' pages on a custom post type page in the admin area?

I suspect this is easy to do. but that I'm simply overlooking something somewhere in the documentation. If you have your normal 'All posts' page in the admin area, then it shows 'Bulk Action', 'All ...
0
votes
1answer
17 views

Allow users to upload attachments to certain posts

I am hoping to get some possible solutions from you all :) I have 330 regions set up as a taxonomy category. Each region has it's own landing page displaying posts relating to that area. I wanted a ...
0
votes
0answers
19 views

ACf Image not showing on front end

the short version: for some reason the image field i have in my form are not showing unless i enter the post and push the update button inside the post. the long version: i have 2 acf forms. one ...
0
votes
0answers
14 views

Edit code get post by custom taxonomy

I have a code snippet showing related posts by category: <div class="under-video-block"> <?php if ( is_active_sidebar( 'under_video' ) && is_single() ) : dynamic_sidebar( '...
0
votes
1answer
29 views

editing shortcode for custom post type within a plugin

My head is spinning on this code. I'm trying to add the ability to an existing plugin's shortcode, to display only certain custom post types that contain a certain category name. So far, I have this: ...
0
votes
1answer
15 views

Search for single post by 2 tags

i have "Tag1" and "Tag2" i want to find most recent post with both tags.So far i have tried this, i know im close, but it is listing all posts containing either tag. $args = array( 'relation' ...
0
votes
1answer
29 views

Remove categories taxonomy from custom post type

I've got a custom post type called "Resources". How I've defined the taxonomy: register_taxonomy( 'resource', // the name of the taxonomy 'resources', // post type name array( ...
0
votes
0answers
27 views

WP_Query for custom taxonomies showing posts from non-specified terms?

I have two custom taxonomies "products" & "products-info" registered for custom post type "products-posts". There are three terms (shoes, shirts, pants) in "products". Similarly, there are two ...
0
votes
1answer
10 views

Repeater + taxonomy: same value in every field

Using repeater and taxonomy fields. Taxonomy values populate correcty but when changes are saved, same value is stored in every repeater field. Page where values are stored is a blank template with ...
0
votes
0answers
16 views

How can I sort categories by slug in the backend?

Title says most of it, looking to sort categories by slug EVERYWHERE across my backend. I'm not looking to do this on the frontend, as I've already figured out how to display my categories in the ...
1
vote
1answer
13 views

tax_query returning all posts instead of selective posts in WP_Query

What I am trying to do Hi, in my site I have a custom post type called projects, then I have created a custom taxonomy for my projects post type called project_catagories. Now in my projects archive ...
0
votes
1answer
16 views

Expired event redirect to parent category

I build a website for a client of mine, that is going to continuously host events for his area. One of the requirements he has is to expire and remove from the database the events already completed. ...
0
votes
0answers
22 views

Can't add categories or tags to a post as editor on Gutenberg editor

I've installed Members extension in order to restrict capabilites of the editor role. I want to allow the editor to create posts and add to it a category and/or a tag. I've set the capabilites as it ...
0
votes
0answers
35 views

How to get current post type?

I want to get the current post type inside functions.php This is a function to sort reviews by custom meta key. I've managed to get the reviews sorted using the following code: // Sort reviews in ...
0
votes
1answer
48 views

Rename a slug label

In my custom post type there is a custom taxonomy that has the usual Title, Slug and Description fields. I'm expecting the end user to not understand what the slug is for, and in my case it needs to ...
1
vote
0answers
39 views

Taxonomies are not showing in the category dropdown

I am working on clients website and I have added the Custom post type plugin for creating the new section and I have also added the taxonomies for that. In my page, I have added the default ...
0
votes
0answers
10 views

Filter taxonomy

I have a custom post type "products" with taxonomy and when I click on a taxonomy that goes to the article "products / #" and that does the filtering and the button of that taxonomy is selected. How ...
0
votes
0answers
14 views

WordPress Wallet/Credit without woocommerce

I am trying to create a credit/wallet like system where user can add their credits from the front-end and when they clicked (buy) a CPT, it would subtract from their total wallet balance. I've tried ...
0
votes
0answers
13 views

How can I create a multi-category site like TutorialsPoint with multi-pages

As you may know, TutorialsPoint is an indian tutorials website that includes many softwares/OS/coding languages. When you click on a subject in a certain category (I know how to do this part with ...
0
votes
0answers
34 views

Order by terms for specific custom taxonomies

I am using the following code to try and order property listings by state for For Sale and Sold custom taxonomy terms $terms = get_terms( 'state' ); // $terms = get_terms( array('status', 'state' ...
0
votes
0answers
11 views

Getting index of a post within taxonomy (“post index / total posts” counter)

WordPress has function get_next_post_link and get_previous_post_link that allow to get link to nearby posts. I'm trying to create "1 of 10" counter (where 1 is index of the current post and 10 is ...
0
votes
0answers
10 views

Bulk Add Term to all Attributes taxonony

I've searched everywhere but don't know where to start with this. I've imported a data into a wordpress/woocommerce which has alot of attributes, and alot of terms in the taxonomy of those ...
1
vote
0answers
15 views

Get taxonomy based on another taxonomy slug

I have 2 custom taxonomies associated with 'property' custom post type. 1 - prop-city 2 - prop-type can i get property type based property city? I need in properties city page when i click on ...
0
votes
0answers
41 views

How to create a A-Z glossary

I am working on a plugin that lists all the available sites on our multisite, I have it working but was trying to find a way to navigate by letters or just create an A-Z glossary. <?php function ...
0
votes
1answer
28 views

URL issue after setting up Custom Structure in Settings >> Permalinks

I've tried to Google this but to no avail. I'm a newbie at programming but I can say I'm adept at configuring WP - pretty please, please bear with me. :) I have a CUSTOM_TAXONOMY that when viewed, ...
0
votes
1answer
33 views

How to assign a default/priority taxonomy to be shown in url in case two taxonomy items are selected

I have a custom taxonomy (ex. taxonomyfoo) created with CPT UI plugin and assigned this taxonomy to the standard wp post. I have also used below code to add the taxonomy slug in the url (%taxonomyfoo%...
0
votes
0answers
30 views

Create a Taxonomy for Easy Digital Downloads (EDD) Plugin

I was trying to create a Custom Taxonomy called "Metodología" for the EDD Post types, but I dont know what I need to change in my code to affect this Custom Content type, can someone help me? I think ...
0
votes
1answer
10 views

Taxonomy doesn't follow slug permalink structure

I started with a fresh template and added a Post Type according to specification at GenerateWP. I then added a taxonomy to the custom post type, also according to the above-referenced website: // ...
0
votes
1answer
26 views

How to display all terms from all taxonomies in post, but separately for each taxonomy?

If I want to display all terms assigned to a custom post with custom taxonomy, I could use for eg. <?php the_terms( $post->ID, 'custom-taxonomy', '', ", ", '' ); ?> but in this solution I ...