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.
4,462
questions
0
votes
0
answers
17
views
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 ...
0
votes
0
answers
17
views
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 ...
0
votes
1
answer
14
views
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 ...
0
votes
0
answers
14
views
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 ...
0
votes
1
answer
21
views
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 ...
0
votes
0
answers
45
views
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 ...
0
votes
1
answer
29
views
How to correctly edit permalink structures for both default and custom posts/taxonomies?
I've renamed the default post type in my site 'Articles' using the following function:
// Replace Posts Label with Articles in Admin Panel
function change_post_menu_label() {
global $menu;
...
0
votes
1
answer
24
views
How to Display News in a Timeline with Headline, Category, and Time?
I am working on a project where I need to display news articles in a timeline (Latest news). I want each news item to be structured as follows:
• The title of the news article
• Category (e.g., “...
0
votes
0
answers
26
views
How to Bulk Update CPT Taxonomy Values Using CSV Lookup Table
I have a CPT named Places on a very large website with a few million posts. Each post has a value for the taxonomy States (e.g, FL). Normally I use WP All Import, but it's very slow. Processes about ...
0
votes
0
answers
15
views
Registering A Custom Post Type/Taxonomy from Plugin
I see similar questions, but I think I am just too inexperienced to understand the solutions.
I am using the Agile Store Locator, which allows us to manage multiple locations. I want to somehow ...
0
votes
1
answer
17
views
Is there a way to edit non-custom term attributes?
I have a custom post type (FAQs), taxonomy (FAQ Categories) and everytime I want to create one it appears all the same name, slug, parent, description fields. I was wondering... If there is a ...
0
votes
1
answer
28
views
Can't retrieve custom post type taxonomy term to custom post type editor
I have 2 main problems:
I can't seem to add editor_name custom field to default/native WordPress list of request URL query parameters.
This is the request WordPress is using:
http://localhost/wp-...
1
vote
2
answers
108
views
Add body class to custom post type
I'd like to add a category class to body_class for custom post type to change body background color. I tried to rework the following code to work with custom post types, but no dice. It works with ...
0
votes
2
answers
24
views
Assign Default Taxonomy to Post When Created
I'd like to associate new posts created under a custom post type to automatically be given a custom taxonomy term. As a heads up here are the parameters
Custom Post Type Name: business_ser_dir_ltg
...
0
votes
1
answer
19
views
How can I get the categories and subcategories separately?
I am using this code to get the categories and subcategories from the reference page. It is quite good because it allows me to sort them hierarchically. But I would like to give them two different ...