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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
7 views

Which filters control the Categories page (or a custom taxonomy page) in the Admin?

I have a custom taxonomy. When I go to the page in the admin where it can be managed - edit-tags.php?taxonomy=bundles&post_type=kea_activity I see a table with headings for Name, Description, Slug,...
Kropotkin's user avatar
  • 168
0 votes
0 answers
9 views

Using Custom Taxonomy in Default Post Slug

Hoping for some help... This relates to similar questions but with some variation where I haven't been able to get to a working solution. What I'm trying to do I want to use my created custom ...
Danny C's user avatar
0 votes
2 answers
13 views

translating a custom taxonomy term in a shortcode

I tryed this code but the german version is not working (italian is ok) $lang = substr( get_locale(), 0, 2 ); global $post; if ('it' != $lang ) { $term_name = get_the_terms(get_the_ID(), 'intro_'.$...
Andrea Sacconi's user avatar
0 votes
1 answer
36 views

Remove slug and custom post type name from URL

I have a custom post type "treatment", under this CPT the taxonomy "treatment_category" which forntend slug is "category" right now the URL for category displaying as ...
user1419170's user avatar
0 votes
2 answers
10 views

how can I get the selected term of a custom taxonomy

Taxonomy name is "intro". I'm inside a shortcode so I dont need to echo.I need a variable for the selected taxonomy term to put in the return. What I do has no effect $terms2 = ...
Andrea Sacconi's user avatar
0 votes
2 answers
19 views

Is there a way to create a single rewrite rule to handle multiple variables depending on what is present?

I have the following rewrite rule to handle when all arguments are present: add_action('init', 'ebd_custom_rewrite_rules'); function ebd_custom_rewrite_rules() { add_rewrite_rule('^shop-region/(.*)...
Tommizzy's user avatar
0 votes
0 answers
6 views

How to get the proper category in permalink with custom post type assigned to multiple categories

I was wondering if you could help me with the following issue. I have read a lot of cases, but couldn't trace anywhere good answer which explain, how this works. I created a custom post type: project ...
Brango's user avatar
  • 1
0 votes
1 answer
16 views

Filter on one post type with taxonimy and get other post type

I would like to fetch my posts of type 'news', 'videos', 'webinars', 'whitepapers', 'testimonials', and 'landing-pages' and apply a "filter" to only get the landing-pages type with the ...
WypSteur's user avatar
0 votes
1 answer
21 views

ACF - Tags not showing up in Custom Post Types

I have a tags taxonomy and then I've added it to my CPT, however it does not give me the option to add tags to my CPT now. How do I get it to do that?
user3382763's user avatar
0 votes
0 answers
9 views

Set Variant options/attributes values on WooCommerce

I can insert variant options/attributes with no default values(variant name) in order to display following Variant options area with selected attribute names(Renk,Beden) on the product, by using ...
blueway's user avatar
  • 23
0 votes
1 answer
30 views

Hide load more button if no more post in selected category

I have built a ajax post loading program in wordpress where i load post depending on category and current post type. ive got it all working except hiding the load more button if no more post. ive been ...
Beep's user avatar
  • 29
0 votes
1 answer
14 views

get total post in category via ajx

Aim The total to be equal to the amount of post within the selected category or sub category. What im getting I am getting 0 when trying to get the number of post available in a category. My aim is to ...
Beep's user avatar
  • 29
0 votes
0 answers
27 views

Hot to show custom post type taxonomies on archive page

I have a custom port type 'apartments' and each apartment has several parametres which I made into custom taxonomies, like 'number of rooms', 'area', 'region', 'status', etc. The task is to show all ...
Ava Northon's user avatar
0 votes
0 answers
9 views

How to best assign choices to CPT posts and allow filtering on frontend

Looking for suggestions on how best to achieve my goals for assigning filters to posts and using those when searching for service providers. I have created a CPT: Service Providers I want to allow ...
php-b-grader's user avatar
0 votes
1 answer
27 views

Taxonomy question how to add more data

Normally taxonomy has a name and a value in the template I'm using it has a name value and what they call category what I'm wondering is what function call in PHP do you use to set that category I ...
RichardS's user avatar
1 vote
1 answer
12 views

How does WordPress manage to differentiate between post and page URLs without a distinct base, and how can I replicate this functionality?

I want clean URLs without a custom taxonomy name or custom post name. The project and its structure are somewhat complex. The customer wants certain strings from a third party plugin to be removed ...
Rick Pestel's user avatar
0 votes
0 answers
9 views

Change taxonomy key of existing and future taxonomy posts

I registered a taxonomy with a certain key name, initial_name, and now there are hundreds of posts in a custom post type with this taxonomy selected that I don't want to lose the connection with (the ...
Joseph K.'s user avatar
  • 101
0 votes
0 answers
23 views

Taxonomy term archive claims there are no posts, but there are. How to resolve?

I have a custom post type (url), and a custom taxonomy term (url-category) for this post type. The archive page for this custom post type works fine. The taxonomy term archive claims there are no ...
MastaBaba's user avatar
  • 257
0 votes
0 answers
29 views

Include posts under a custom taxonomy in author.php

The author’s archive (author.php) on the website I’m working on displays only the posts by the current author. I have a custom taxonomy called “co_writer” which I use to simply tag a post as having ...
Sum's user avatar
  • 11
0 votes
1 answer
25 views

How to filter the terms of custom taxonomy by author id in admin panel

I created custom taxonomy named 'Customers'. In admin panel, different users will login and create their Customers in that taxonomy. I want to show them their own Customers only. Currently they can ...
Ravinder singh's user avatar
1 vote
2 answers
44 views

Rewrite taxonomy permalink appended to CPT archive url

I need the following url structures for my Custom Posttype and Custom Taxonomy. Can anyone please help in achieving them? Spent a lot of time but failed. Ton of thanks in advance. Post URL: https://...
TechieBoy's user avatar
1 vote
0 answers
24 views

Include posts with a specific custom taxonomy term in author page

I created a "co_writer" custom taxonomy with author names as terms. I only use this taxonomy to output their names as co-authors on multi-author posts. As such, posts in which an author's ...
Sum's user avatar
  • 11
1 vote
2 answers
51 views

Search for portfolio tags & mixing portfoliotags and post tags

I have been trying to filter my search result without success. Here is my function in functions.php I want to retrieve only post and portfolio posts (no pages). Below is the code I found on your ...
made leod's user avatar
0 votes
2 answers
43 views

How to work with URLs where sometimes a post or a subcategory is in the same part of the URL structure

I have a site which has pages that show products (these aren't sold on the site, though, it's just informational). Some categories have subcategories, so the URI for a subcategory archive page looks ...
JoLoCo's user avatar
  • 111
0 votes
0 answers
37 views

Custom post type URl Cutomization

I am creating a custom CPT where I have customized CPT URL structure of CPT, I am using the rewrite rule for this but it is conflicting This is a Lessons CPT, and I want to remove lessons from the URL ...
Neelu Singhal's user avatar
1 vote
1 answer
58 views

Grouping posts by 2 different taxonomies

I have the following issue: I have a custom post type (books) with the following taxonomies (1) Categories and (2) Series. Within categories, I have 4 genre sub categories and all books are divided ...
K. Glover's user avatar
0 votes
1 answer
21 views

Equivalent setup_postdata for Taxonomy Term?

I'm attempting to output a custom taxonomy term details (title, description, linked posts) in a modal but can't figure out the best way to 'setup_postdata' for that term so that my template functions ...
Kevin Nugent's user avatar
0 votes
1 answer
12 views

How to Connect my Users to a custom post type I Labelled Campaign

I’ve created a Custom Post Type Name 'Campaigns' and now, I would like the users of my site (only registered ones) to indicate their interest in promoting the campaign by just clicking the promote on ...
Joshua Ehimare's user avatar
0 votes
0 answers
24 views

ACF Pro simple Business Directory - Requesting assistance with created Templates and associated Functions.php Coding

I want to replicate the basic Business Directory functionality found at this URL. We've not had any luck with off-the-shelf software and our needs are very basic. https://onetopanga.com/directory This ...
Micah K's user avatar
  • 15
0 votes
1 answer
44 views

Auto Generate Post Title from 2 ACF Taxonomies [closed]

I am looking for a custom function to auto generate a post title/slug for a specific CPT from two taxonomies and one custom field, created with ACF Pro. Auto generation should be done only when the ...
austriadesign's user avatar
0 votes
1 answer
21 views

How to handle custom taxonomy archive when no posts will have that taxonomy

I have a hobby site where I record the changing tenants of a big shopping centre. For each tenant I create a post and use a ACF repeater to store the unit they are in and open/close dates. The unit ...
Damien Carbery's user avatar
0 votes
0 answers
5 views

next/previous stays within specific taxonomy term when in single post

I have created several taxonomies for my photoblog. When you click on a camera model (for example), you get to the archive page for that taxonomy term. It displays all the photos taken with that ...
jbuck's user avatar
  • 13
0 votes
0 answers
19 views

Adding Category to Child Posts Permalink

I'm attempting to add a category of each child post to that post's permalink. The post type is called lessons. I have a taxonomy called Child Categories that contains the terms workbooks and workbook-...
Felicia Santos's user avatar
0 votes
0 answers
24 views

How can I list all the meta in a custom taxonomy?

I have a site that has custom post types and corresponding taxonomies. I'm trying to create a new archive page for each taxonomy. The problem is that I don't know how to find the actual name of the ...
pressword's user avatar
  • 360
1 vote
0 answers
16 views

edit index custom post type page with elementor or other

i have a custom post type in wordpress like book. i can edit single pages template with add single-book.php file and edit archive pages template with archive-book.php file. i know main page of this ...
milad taghizade's user avatar
0 votes
1 answer
17 views

WP Query filtering by custom category not showing all relevant posts

Here's a question I've been trying to solve all day: I added a WP Query that would show posts from a category that the admin chooses with a custom field. The post is a custom post type called "...
Jillian Hoenig's user avatar
0 votes
0 answers
10 views

Unwanted redirection to homepage after turning taxonomy to 'public'=>false

I have in my site (a site with Elementor, if it's matters) taxonomy 'aaa' with taxonomy term 'bbb'. When I registered this taxonomy, it was set to 'public' => true. Now I changed this setting, so ...
Avi Rec's user avatar
0 votes
0 answers
38 views

Cannot set custom taxonomies when creating post

I'm migrating some posts from another source to WordPress, specifically to a theme/plugin called Madara, which has some specific taxonomies. I'm using wp_insert_post() to create the post, everything ...
Thiago Dias's user avatar
0 votes
0 answers
16 views

Custom templates based custom url structure in wordpress

I'm working on a website that includes a section for Barbers, and I want to achieve the following URL structure: Barbers {domain.com/barbers This page will have 2 section, 1 section will list Barber ...
Tarun's user avatar
  • 1
0 votes
0 answers
14 views

How to call parent and child category name in separate div?

I have created a bootstrap tab to filter the content according to parent and child category. I want to call parent and child category name in separate div because child category will work like ...
Aman Gupta's user avatar
0 votes
1 answer
35 views

How to get taxonomy image in single.php?

I'm using ACF Taxonomy Images, and I can't display a category's image on a single-car.php This is the code that I'm using to show brand image and country image in taxonomy.php : <?php $term = ...
och's user avatar
  • 39
0 votes
0 answers
33 views

Having issues with edit-tags.php not saving $_POST values for custom post_types including woocommerce product_cat

I added custom fields to WooCommerce category edit form using add_action('product_cat_edit_form_fields') and on update action add_action('edited_product_cat') The fields display correctly. On update ...
Nadal's user avatar
  • 89
0 votes
0 answers
16 views

Taxonomy archives based on Custom Post Types

I have the custom post types, reception_units, year_1_units, year_2_units, year_3_units, year_4_units, year_5_units, year_6_units and resources. I want to create archives for the different post types ...
Sam's user avatar
  • 1
0 votes
0 answers
14 views

Display posts from Custom Post Type, group by term, arrange term groups and arrange items within groups by menu order

I have a Custom Post Type 'my_cpt' and a custom taxonomy 'types' which has several terms, all of which have posts. I want to do is be able to control both the order of the groups (terms from my custom ...
Tom Latham's user avatar
0 votes
1 answer
55 views

Listing Child categories under another child category

I have a custom post type called "alz-products" under this i also have a taxonomy called "products-category" The arranged category structure to manage products as follows Spill ...
user1419170's user avatar
0 votes
0 answers
13 views

Category display using conditions

I have a custom post type(events) created and has taxonomy(event-categories) with parent and child categories. Since im not good in coding, i will try to understand all the help from here. So what im ...
Bordzee's user avatar
0 votes
1 answer
149 views

wp query order posts by custom taxonomy doesn't work correctly

I have custom wp query and i need to sort it according to taxonomy called 'consultation_records' which contains years 2017, 2018, 2019 etc. I used this code but the result is the posts not ordered ...
Yehia Gamal's user avatar
1 vote
0 answers
40 views

How to Filter the Custom term loop based on dropdown

I had created on Custom Post Type 'resource', which has 4 taxonomies ('type', 'sector', 'industry', 'rtag') now i had added 45 posts in following manners Type - Brochure, Infographic, Research Paper, ...
Bhargav Joshi's user avatar
0 votes
0 answers
33 views

add top and bottom content in edit page custom taxonomy woocommerce

On the categories edit page, you can see the box titled top content and bottom content. By adding content inside, you can categorize content at the top or bottom of the page. I created a custom ...
Rohit's user avatar
  • 1
0 votes
0 answers
18 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

1
2 3 4 5
90