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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
10 views

Same Custom Post Type Slug and Custom Taxonomy Slug, with hierarchial unique permalink structure

I am new to wordpress custom post type and re-writing urls'. I have created a Custom Post Type with slug 'industry' further re-writen to 'industries' and Custom Taxonomy associated to it with same ...
divy3993's user avatar
  • 103
0 votes
1 answer
18 views

Adding a language rule and displaying posts with a custom taxonomy term on its archive page

The WordPress website I'm working on is available in two languages using Polylang, en-US and en-PH. I use CPT UI and have a custom taxonomy "subtopic" that is not multilingual. Under "...
Sum's user avatar
  • 11
0 votes
1 answer
39 views

WordPress CPT & Custom Taxonomy with the SAME Permalink Structure

I have a CPT: 'Guide' and Custom Taxonomy 'Guide Category'. What I want to achieve is: The CPT permalink structure is: example.com/guides/custom-taxonomy/post-name/ So that the following should ...
Elgameel's user avatar
0 votes
0 answers
20 views

Add Shortcode functionality to a function that queries custom post type / taxonomy

How to output a UL of items and URLS for custom taxonomy? The plugin 'CPT UI' (Custom Post Type UI) is very good at creating custom post types. I have created a post type called 'Towns' that has a ...
Adam Fletcher's user avatar
0 votes
1 answer
12 views

Custom taxonomy still using query URL after fixing error

I made a mistake when creating a new custom taxonomy and custom post type. Here's the line in the custom taxonomy with the error... register_taxonomy('resource-category', ['qp_resource'], $args); The ...
juusui's user avatar
  • 1
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
1 answer
18 views

Array terms, if term one, if term two, etc

I'm working on a function for bibliographic citations. To make it more dynamic the author of the book is a custom taxonomy (autoria). If the book only has one author, the citation begins with the last ...
Oox's user avatar
  • 53
0 votes
1 answer
23 views

How to enforce a requirement for custom taxonomy

I’d like to set a custom taxonomy as required, i.e. authors must select at least one term from the taxonomy in order to save or update a post of a specified set of custom post type. If they haven't ...
Chris_Heu's user avatar
1 vote
1 answer
29 views

How do I know if an archive correspond to a custom post type taxonomy?

I am new to php and Wordpress. I currently have custom type named "helppost" that should hold Help posts. It has three categories: 'Getting Started' with slug "getting-started" '...
Aimn's user avatar
  • 11
0 votes
1 answer
26 views

WP_Query not using relation key as expected and not producing any results

I have created a custom post type service-provider with custom taxonomies region and service-category - By itself, this search works as expected BUT I want to also search on an ACF field. I have an ...
php-b-grader's user avatar
0 votes
0 answers
19 views

Issue with WordPress Automatically Assigning Terms to Multiple Posts

Hello WordPress community, I'm encountering an issue where WordPress is automatically assigning newly created terms to multiple posts in my installation. When I create a new term (custom taxonomy: ...
Danish Mohammed's user avatar
1 vote
1 answer
24 views

Showing all posts of the current custom taxonomy on archive page

I have created a custom post (houses) and a custom taxonomy (houses_area). On each houses_area archive page, I want to see all the posts displayed by alphabetical order. I get stuck in calling the ...
Anna's user avatar
  • 21
0 votes
1 answer
22 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
  • 169
0 votes
0 answers
18 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
18 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
64 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
15 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
31 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
14 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
23 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
228 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
31 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
100 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
17 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
28 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
1 answer
29 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
15 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
16 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
27 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
  • 291
0 votes
0 answers
30 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
31 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
51 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
28 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
57 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
48 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
41 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
61 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
26 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
13 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
57 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
59 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
25 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
6 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
21 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
30 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
19 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
19 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
11 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
44 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

1
2 3 4 5
90