Skip to main content

Questions tagged [advanced-taxonomy-queries]

0 votes
0 answers
15 views

WP_Query on custom taxonomy -> Location and Activity

A store location site displays stores based on region, town OR activity. I am using the WP Store Locator plugin and also using Divi Builder to create the pages. This is proving quite powerful and I ...
Adam Fletcher's user avatar
0 votes
0 answers
21 views

How to clear cache for get_terms()

I am calling get_terms() in a loop. I may modify the terms (add one) in an iteration of the loop. I need to be sure that the next iteration gets this added one. Specifically; I test for a child term ...
Kropotkin's user avatar
  • 169
0 votes
0 answers
28 views

Include custom post type that matches taxonomy field in another custom post type

I have two custom post types, one is “maker” and the other “product”. (used ACF plugin) I have a taxonomy field for Business Name, this field is called “choose_business” in the product custom post ...
Nik Nak Sim's user avatar
0 votes
0 answers
229 views

Sort posts by category and date using php and custom query

I am using Elementor Pro and Advanced Queries and also ACF for custom date. I have 2 types of posts that are events - event 1 and event 2. I have an event calendar on the first page showcasing the ...
Tryandcry's user avatar
1 vote
2 answers
3k views

WordPress - Custom permalinks for advanced custom fields (ACF) using post type taxonomy

I am trying to update the URL structure for posts within a custom post type. I would like the url to use the taxonomy slug from the "resource-topic" taxonomy, and not the custom post type ...
user2748363's user avatar
0 votes
1 answer
45 views

List posts grouped by children of a custom taxonomy

I am successfully listing posts grouped by category from a custom taxonomy like so: Category 1 Post Post Post Category 2 Post Post Post Category 3 Post Post Post Category 4 Post Post Post I am ...
quantum_leap's user avatar
0 votes
0 answers
72 views

Hook to filter based on form value and insert term

I am working on a form where I am trying to insert a term to a taxonomy. So I have a drop down select with a list of my taxonomies and then the next field is a simple text field where the users will ...
spyfly's user avatar
  • 1
0 votes
1 answer
238 views

wp_get_object_terms count on taxonomies within an category archive

Working on a category archive, i have a sidebar with custom non hierarchical taxonomies, used as filters (like custom post_tags). In order to list those filters, I use wp_get_object_terms: <?php ...
rafa226's user avatar
  • 121
0 votes
1 answer
21 views

Incorrect taxonomy ID assigned to post with custom query

I'm having a strange issue where the output of the following query isn't always correct. <?php // Get all the categories $categories = get_terms( 'soort-event', array( 'include' => array( 36,37,...
NielsPilon's user avatar
0 votes
0 answers
197 views

Exclude taxonomy term from list of current taxonomy terms

I am trying to display a list of custom taxonomy terms for the current page, but do not know how to filter out specific terms. My code is below. How do I exclude certain taxonomy terms? I'm still ...
Michelle's user avatar
1 vote
1 answer
348 views

Remove All Taxonomies from Post On Update

I've got a custom post type set up with custom taxonomies. When a user updates a post I need a way to check to see if there are any location taxonomies applied and if so then remove them. I've managed ...
Daniel Worthington's user avatar
0 votes
1 answer
57 views

A function to add arguments to a taxonomy

I use a plugin that adds the taxonomy "Vendors" - but not with arguments I need to be able to use a layout designer (Avada-> Layouts) and assign that layout to all "vendors" I ...
BeTA iT's user avatar
  • 63
0 votes
1 answer
1k views

ACF - Retrieve custom taxonomy from a relationship field

I have a custom post type, called prognosis with 3 custom taxonomies, Country, Competition, and Sport, I've also added a few ACF custom fields. I have another custom post type called analysis with an ...
quantum_leap's user avatar
0 votes
0 answers
163 views

How to get related taxonomies based on a category with mysql query?

I have a lot of custom taxonomies for my WordPress site. What I want to do is to Get Related Custom Taxonomies based on a Category. Sample Structure: (Material, OS and Features are Custom Taxonomies.) ...
cloudinstone's user avatar
0 votes
0 answers
25 views

get terms hiding empty

I have different taxonomies, let's say category and colour, these 2 tax have different terms, the tax are in parallel, a product can be in the category A and have colours X, in my frontend when I go ...
francesco.venica's user avatar

15 30 50 per page
1
2 3 4 5
14