Skip to main content

Questions tagged [custom-taxonomy]

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

0votes
0answers
18views

Order custom post type by terms

im looking for a way to order products by terms. some products do have the same terms f.ex. men & women and i want individual sorting on each of these archive pages. does someone has a clue on how ...
honk31's user avatar
  • 1,408
0votes
1answer
45views

Construct WP_Query args for multiple taxonomies and sort by terms

I'm trying to create a list of related posts from a couple of custom taxonomies and then sort them starting with one taxonomy's terms. The post type is "work" and the two taxonomies are &...
tgerard's user avatar
0votes
2answers
25views

Custom Taxonomy archive with url parameters

I have a custom taxonomy 'Genre' attached to posts and 2 custom post types - 'Movies' and 'Books'. In my taxonomy page for 'Genre' I have 3 custom queries that list the last 6 posts from each post ...
ImAskingNoobishQuestions's user avatar
0votes
0answers
18views

Query Custom Post Types on Available Dates

I'm wondering if anyone has a plugin solution or if they can forward me in the right direction. We currently list holiday rentals on our website and we have the properties set up as custom post types. ...
Tommy Leyland's user avatar
0votes
0answers
29views

Get_Field for Taxonomy Returns Error, ID, or Nothing ACF

I’m using the classic editor and have disabled Gutenberg blocks and global styles. I’ve created a custom post type named Resources, for which I’ve also created an archive archive-resources.php. I’ve ...
Codette's user avatar
0votes
0answers
25views

Hiearchical terms structure and performance

I'm currently developing a solution that requires a relationship between country, state and city. For example, finding a job in a given country, state and city. The current thinking is a single custom ...
Ryan's user avatar
0votes
0answers
30views

get_term returns different results, sometimes empty, sometime the correct list

I've a simple static function in my plugin to get WooCommerce categories. However, it takes time(?) to get a real result, not an empty one. Why are the results different within one pageload? ...
V1pr's user avatar
0votes
0answers
80views

WP get_terms and ACF field

Trying to add terms from another taxonomy to the current term. It seems to work fine when I have multiple values but the get_terms($args) returns 0 when there is only one value. Here is the setup. The ...
mardag's user avatar
0votes
1answer
72views

Allow HTML in custom taxonomy description, and show it on front end

Sorry I'm quite new at coding, and also working with WordPress and ACF, and I'm trying my best but I can't figure this out: I'm trying to load my taxonomy description in rich text. Currently I'm using ...
Casper Boon's user avatar
0votes
0answers
21views

Changing URL Parameters for Taxonomy in WordPress

I have two taxonomies: Genres and Occasions. I want to have my parameters "translated" and treated the same as my original parameters. Currently, it only responds the correct way to ...
vood's user avatar
0votes
0answers
24views

Show Hide Post Information based on term clicked by user

let me explain my requirements. I have WordPress website and I have created a custom post type reviews. Single post have acf fields which I want to show up depending upon the the term user clicks on ...
Amit Singh's user avatar
0votes
1answer
20views

wp_insert_term how to insert "<" or ">" in description

so i'm trying to insert an image to wp_insert_term() by $args = array ( 'description' => '<img src="src">'); wp_insert_term( 'sample', 'taxonomy', $args ) ; However it is being ...
Kenneth Gervacio's user avatar
0votes
0answers
18views

Only show taxonomy on top level posts

Is there a simple way of only showing a custom taxonomy on top level posts for a custom post type in admin interface? Example: I have a CPT, product, and a custom taxonomy called color. But I only ...
lepardman's user avatar
0votes
1answer
34views

has_term not returning anything

I have a queried list of calendar events that I am trying to check if they have custom taxonomy terms. Within the loop, I have a list of "if" statements for outputting terms from the ...
GrabBag-Charles's user avatar
0votes
0answers
125views

How to Dynamically Filter Custom Post Types by Taxonomy Based on URL in Elementor Pro and ACF?

I'm building a WordPress site using Elementor Pro and Advanced Custom Fields (ACF). I have two custom post types: Countries (for country pages) and Sights (for different sights/landmarks in each ...
user10629239's user avatar

153050per page
close