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

Pagination links not working for custom taxonomy

I have a Custom Post Type (project) and a Custom Taxonomy (project_category). I have created a Page (Projects), which uses a custom template, in which I run a WP_Query to fetch projects and display ...
superfive33's user avatar
0 votes
1 answer
161 views

Custom taxonomy archive empty

I have created a custom post type with the following arguments: $args = [ 'label' => 'Projects', 'labels' => $labels, 'description' ...
Badger's user avatar
  • 193
0 votes
1 answer
33 views

Url rewrite with custom post type and taxonomy

Here is what I am looking for: Custom Post Type: partner Archive: domain.com/partners/ (list all partners) Custom Taxonomy: country Archive: domain.com/partners/denmark/ (list all partners in a ...
Vayu Robins's user avatar
0 votes
0 answers
16 views

How home my code doesn't display any feature image? Looping through post from a taxonomy and not getting feature images back

The only thing I am trying to do is just to display each post from Services that belongs to the taxonomy called 'national' and display its title and its featured image. So far it displays each title ...
fjimenez's user avatar
0 votes
1 answer
1k views

Query posts by custom taxonomy slug in WP REST API?

I'm trying to do the above-mentioned; and came across this and this. Is it still the case that you have to query by term ID using the REST API, and there's no built-in way to query posts via the WP ...
DevelJoe's user avatar
  • 487
0 votes
0 answers
32 views

How do I ensure that post_type and Taxonomy use the same slug?

I had to create a Custom Post Type and taxonomy to add a question and answer section to my site. But I want both of them to use the same persistent link. The codes are like this, so one of the two ...
Murat Dinc's user avatar
0 votes
0 answers
17 views

Why do my quick edits for custom taxonomies not show on the post frontend?

So I have created a couple of custom taxonomies and to save time I used the quick edit to apply taxonomy terms to posts. The problem is these changes don't show on the frontend. When I go in to edit ...
Ibrarr Khan's user avatar
0 votes
0 answers
29 views

Filter with two id of the same value CPT UI(taxanomies)

I have a special link with a filter, so I filter things with slugs through the link, for example mydomain.com/filter/?technology=angular&category=software-development and it shows the chosen jobs ...
Tanya Nami's user avatar
0 votes
1 answer
276 views

Get X posts with the same terms as the current post (custom post type and custom taxonomy)

I want to show a list of posts with the same terms as the post you are currently viewing (it's basically a related posts list). It's a custom post type (called "oferta") and a custom ...
migueltic's user avatar
  • 105
0 votes
1 answer
199 views

Amend taxonomy to search in wordpress admin

I am trying to amend a custom taxonomy to a search in the editor area. The taxonomy slug is 'help_cat' and is attached to 'help-center' post types. What I am trying to achieve is very similar with OP ...
tearswep's user avatar
0 votes
0 answers
39 views

Include get_term_link inside search

I am trying to include custom taxonomy links inside the search. This is my code that gets the links of my 'help_cat' taxonomy, but I am struggling on how to add/include this inside the search. ...
tearswep's user avatar
0 votes
1 answer
75 views

Adding new terms to custom taxonomy

I created categories for attachments with register_taxonomy like so : function simple_register_attachments_tax() { register_taxonomy( 'gallery-category', 'attachment', array( 'labels'...
zac's user avatar
  • 650
0 votes
1 answer
13 views

Terms added to custom taxonomy for custom post type only appear in Rest when added in code

Nothing to do with what I thought at all. The issue is pagination. Need to add ?per_page=100 to get more than 10. According to a comment on this page if you have more than 100 you need to use ...
Kropotkin's user avatar
  • 168
0 votes
1 answer
290 views

How to add/enqueue Custom CSS for a custom taxonomy page?

So this is what I have done for my homepage so I load css that only loads on my homepage function enqueue_frontend_assets(){ if(is_page_template( 'homepage.php')) { wp_enqueue_style( '...
fjimenez's user avatar
0 votes
0 answers
38 views

Get all taxonomy terms for attachment, get_terms does not work for me [duplicate]

I have created tags and category for my media attachments with a function like this register_taxonomy( 'gallery-tags', 'attachment', array( 'labels' => array( 'name' ...
zac's user avatar
  • 650
0 votes
0 answers
35 views

Custom Post Type with Different Sets of Post Content?

I have a custom post type called "Industry" and want to allow for a given Industry post to have different sets of post content depending on "Region". The post type would have a ...
nickpish's user avatar
  • 217
1 vote
0 answers
160 views

How to rewrite custom taxonomy term archive to use THE SAME SLUG/front as CPT

What I have: example.com/movies/{post} <!-- custom Post Type single post, e.g. /movies/batman --> example.com/genres/{term} <!-- custom Taxonomy single term e.g. /genres/action --> What ...
dubyaD's user avatar
  • 21
0 votes
0 answers
110 views

get_the_terms has strange result since version 6.0

Since version 6.0 of WordPress some of my code with get_the_terms() doesn't work as expected in several sites where I use custom query loops. For example I have this loop where I want to get the ...
Remy Jacobs's user avatar
1 vote
1 answer
478 views

Getting taxonomies associated with a specified post type

Is that possible right now? Running: wp.data.select('core').getEntityRecords('root', 'taxonomy') Lists all registered taxonomies, same result with: wp.data.select('core').getTaxonomies() Can I pass ...
INT's user avatar
  • 1,281
0 votes
1 answer
146 views

How to display posts from custom post type category(custom Taxonomy) wise?

I have created a site where i have a custom post type as Resources. I have a custom taxonomy(Resources Topics) attached to it. I want to show them in a card system where there will be taxonomy image, ...
Bubai Mondal's user avatar
0 votes
0 answers
19 views

How to associate a custom taxonomy to a post multiple times

On my Posts, I'm trying to associate a custom taxonomy to it multiple times. The example is that I have a User taxonomy and a Post which is like an event. I want to be able to associate the User ...
dlm's user avatar
  • 1
0 votes
1 answer
19 views

Problem with sorting in custom child taxonomy archive page

I have this code: <?php $term = get_queried_object(); $term_id = $term->term_id; $taxonomy_name = $term->taxonomy; $termchildren = get_term_children( $term_id, $taxonomy_name ); foreach ( $...
Luke's user avatar
  • 11
0 votes
1 answer
192 views

Trash Bin for Categories?

I have a cat_notice taxonomy, where there are several categories and one of them the slug is 'trash'. In this case I created a link and I needed that when I clicked on this link I would take the ...
Felipe Lenin's user avatar
0 votes
1 answer
554 views

Auto Generate Post Title from 2 Custom Fields

I would like to generate the post title from 2 custom fields, 'job', which is a taxonomy, plus 'date' which is a date picker, not the date of the post. This is for a custom post type called 'job-...
Michael's user avatar
0 votes
1 answer
18 views

Custom taxonomy - checking if name includes a declared value

Can anyone help me adapt the below which creates a set of <LI> elements with custom taxonomy categories created in a custom post type I have. What I want to achieve is to only list the 'project-...
dubbs's user avatar
  • 101
0 votes
1 answer
98 views

custom post type, hide or disable the status line in publish meta box

I have been adding a post type to my theme, how do I hide/disable the status line (All of it) as in image
jamesnelson82's user avatar
0 votes
1 answer
101 views

Create a Dropdown Selector and Redirect for a Custom Taxonomy in WordPress?

I'm trying to create a dropdown selector on my CPT and CT archive page for a custom taxonomy called "location". I've managed to get the form to submit, however, it does not direct me to the ...
Alan Loh's user avatar
0 votes
1 answer
469 views

How to add custom meta to 'pre_get_terms'?

I have a custom taxonomy with custom meta. I have added the custom meta values to columns in the admin list page just fine. But if I search for values that are in these columns nothing is found. I'm ...
Michael's user avatar
  • 281
1 vote
1 answer
60 views

list/consult Taxonomy only for the respective author/creator in dashbboard

I'm trying to filter so that only the creators of the respective categories can edit them. I created a cat_author meta field and associated it to the taxonomy. In this way, every taxonomy has an ...
naber brene's user avatar
0 votes
1 answer
39 views

Is there a way to nest taxonomies or custom fields deeper than one level below the post type?

In Wordpress we can create a post type which can contain taxonomies (or custom fields). Can these taxonomies (or custom fields) contain anything? For example other taxonomies or something else? If I ...
musialmi's user avatar
  • 103
0 votes
1 answer
202 views

How do I disable the built-in editor and automatically configure the properties of new pages?

I use a Builder plugin on the site. Members are editors and can create their own page. I want to disable Gutenberg so that they can only edit pages with Buldir. I would also disable the properties of ...
Olvas0's user avatar
  • 3
0 votes
0 answers
63 views

Archive page of taxonomy returns a 404 error

I'm trying to create a template file for a custom taxonomy archive page but I keep getting a 404 error when trying to access that archive page. Basically something like: domain.com/quizzes/quiz-levels/...
user avatar
0 votes
1 answer
92 views

Custom taxonomy throw error 404

So in my homework I was given code example and it works for teacher, but not for me. So from what i understand that I'm creating custom post type and custom taxonomy for it, also there is filter that ...
Homtaro's user avatar
1 vote
0 answers
26 views

Choose whether to automatically add a taxonomy with the same name as the post

I created a custom taxonomy within the blog post. It's called "FootNotes." I would like there to be a checkmark inside in the creation of the post that asks me "Are there any notes ...
bastiag5's user avatar
0 votes
0 answers
836 views

using wp_insert_term to create custom terms for a custom taxonomy from frontend form,

I have a form which allows certain roles to add custom terms to a taxonomy. My taxonomy is called Genre (slug genre) <form method='post' enctype='multipart/form-data'> <input type="text&...
user1348927's user avatar
3 votes
2 answers
3k views

How get custom field from custom taxonomy?

I need to list all categories and their respective posts. Each taxonomy has an image created by ACF in jetengine plugin. I created the loop that returns the list of categories and posts for each ...
naber brene's user avatar
0 votes
1 answer
18 views

Take a custom taxonomy value and save as a standard Product Tag

I'm trying to find a way to take a custom taxonomy value, and add it as a tag to that same product. Long story short: a third party CRM only respects woo native categories & tags, so we'd like to ...
Austen Osborne's user avatar
0 votes
1 answer
95 views

Dynamically insert code to custom post type loop

I need to display post from custom post type name "film", from a specific taxonomy "Horror." Everything work fine when I type the taxonomy directly like this: <?php $blog = ...
Chl Lila's user avatar
0 votes
1 answer
30 views

how to show records that don't have custom meta value

Running pre_get_posts, I want to order the items by a custom meta value. The problem is that by default this doesn't exist. Only if a user performs a certain action does the meta key/value get added. ...
user8463989's user avatar
0 votes
1 answer
310 views

Set term on an attachment using wp_set_object_terms and want to display the full term text but it's showing a slug instead

I have a form that visitors use to upload files and fill out information about them and a function that adds those files to the media library and set various fields (including some custom taxonomies) ...
Mike Eng's user avatar
  • 258
0 votes
1 answer
34 views

Custom Post Types not queried in Custom Taxonomy archives or Native archives

I have declared a selection of custom post types as an array, allowing post_tags but not categories: // Add Multiple Custom Post Types add_action('init', 'all_custom_post_types'); function ...
mtm's user avatar
  • 43
0 votes
0 answers
28 views

How to implement very unusual wordpress routing structure?

Been trying the last two weeks to setup an unusual routing structure for a WordPress website but cannot manage to make it work. Basically there is a custom post type that will get the post url based ...
Jen H's user avatar
  • 1
0 votes
1 answer
27 views

Custom post type category link redirecting to 404 page

I have created a custom post type. There is no issue with post and it's working. I am getting issue in the catgory links. When i click on the Category name it's redirecting on 404 page I am getting ...
Naren Verma's user avatar
0 votes
0 answers
93 views

How to fix select filter on category

I created a filter where I can filter on different types of machines by a custom taxonomy. It shows the right taxonomies in the filter and after submitting the right url is shown. Problem is that ...
Ricardio's user avatar
1 vote
1 answer
88 views

Add custom taxonomy to post content body?

I've built a CPT that has three different custom taxonomies, I've also built a custom search form that has fields for each taxonomy, and a field for "search by keyword". I want the taxonomy ...
grzybowski1911's user avatar
0 votes
0 answers
29 views

WP_Query - How to query all of post types categories

I added a custom taxonomy to woocommerce's products post type. The custom taxonomy is called Brands and is simply used to select the brand of the product. I am using wp_query to query all of the ...
jermayne williams's user avatar
0 votes
1 answer
61 views

how does the wordpress rest API work

so I am looking into the wordpress REST API for the first time. I have some questions that may sound ridiculous to those that are familiar with it, but i am confused as to how it works. So natively ...
mir's user avatar
  • 16
0 votes
1 answer
138 views

Show current custom taxonomy

I have a custom post and custom taxonomy my taxonomy is called "department" i have my loop showing my custom post, I am trying to also show all the departments (custom taxonomy) that my ...
Beep's user avatar
  • 29
0 votes
0 answers
190 views

wordpress mysql / wpdb ajax load more for terms help

Can anyone pls assist me with my problem. I am not asking for code, but even some guidance as to how to get this working. I have tried many ways, to get my terms to load using ajax load more and seem ...
mir's user avatar
  • 16
1 vote
0 answers
103 views

Remove cpt slug from url and use custom taxonomy instead breaks all other cpt

Im trying to do so, it works but also affects all other cpt (404 for all cpt but not resources one) this is what I have In the cpt definition ... 'rewrite' => array( '...
user4239's user avatar

1 2 3
4
5
90