Skip to main content

Questions tagged [advanced-taxonomy-queries]

1 vote
0 answers
110 views

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
  • 189
1 vote
2 answers
6k views

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
63 views

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
93 views

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
308 views

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
43 views

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
221 views

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
2 votes
1 answer
690 views

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
84 views

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
2k views

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
189 views

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
62 views

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
0 votes
1 answer
401 views

I try to output a list of terms from my custom taxonomy. I am almost sure I was using this code snippet before, but somehow WP throws errors: shuffle() expects parameter 1 to be array array_slice() ...
alstorx's user avatar
  • 51
1 vote
2 answers
6k views

<?php $fields = acf_get_fields('6066'); ?> <?php if( $fields ) { foreach( $fields as $field) { $value = get_field( $field['name'] ); if ($value) { echo '<...
Johan's user avatar
  • 309
0 votes
1 answer
28 views

For a site I need to show related posts for a custom taxonomy. Because another person build this site and also created a custom taxonomy, and this code can't be found in a proper file like functions....
Ricardio's user avatar

15 30 50 per page
1
2 3 4 5
14