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
1
vote
1answer
60 views

WordPress category add image field

Checking for a possible solution to add a image upload field into category on posts in wordpress. Like "Featured image" in posts. I checked different articles, some of them does display the upload ...
1
vote
0answers
17 views

Month list with post count for current taxonomy term [closed]

please help me to create Month list with post count for current taxonomy term. Can anyone help me please. i want to show custom post type count by month of taxonomy in archive page for current year. ...
0
votes
1answer
29 views

Check if current user has a post and that post has any term/s from a specific custom taxonomy outside the loop

I'm looking for a way to check if (whilst outside the loop) the current user.. 1. is logged in 2. has a post published 3. their post has any term/terms from a custom taxonomy I have this so far... &...
0
votes
1answer
38 views

wp_insert_post deleting previous post custom meta

I have created a custom post type called "pay stub" and two custom meta fields "net pay" and "link" (the link to the pay stub file) and two custom taxonomies, "status" and "employee". I set the ...
0
votes
0answers
15 views

Content page for each taxonomy of custom post type as child page

I have a custom post type which I wish to follow the URL structure of: /[post type]/[post name]/[taxonomy name]/ I wish for both this page and the regular CPT URL (/[post type]/[post name]/) to have ...
0
votes
1answer
92 views

How to show all taxonomies within custom post type loop

I am trying to show all records for a particular custom post type and I want a list of all taxonomies in a dropdown. Here is the query for the CPT: <?php $articles = new WP_Query(array( ...
1
vote
0answers
16 views

Post count by month of taxonmy term

Can anyone help me please. i want to show custom post type count by month of taxonomy in archive page for current year. Example: January 24 February 43 March 5 April 6 and etc
0
votes
1answer
23 views

If ACF Post Object post has custom taxonomy term…

I’m trying to conditionally display a div if a post object post has a specific custom taxonomy term. The custom taxonomy is called ‘room_vacancy’ and the term is called ‘booked’ I’m using the ...
0
votes
1answer
20 views

How to create a non removable taxonomy term?

I have this question but it refers to frontend How can make an unremovable term in the backend similar to uncategorized? Thought it could be renamable I believe the slug or ID will remain the same. ...
0
votes
0answers
15 views

Getting the next/prev post in the same last taxonomy term

I have a custom taxonomy 'offline' custom post type 'lessons' and every post has multiple terms offline >> term 1 >> term 1.1 >> term 1.2 >> term 1.3 >> post and I ...
1
vote
0answers
63 views

Display post count by month of current taxonomy in archive page

Can anyone help me please. i want to show custom post type count by month of taxonomy in archive page for current year. Example: January 24 February 43 March 5 April 6 and etc. This code is help ful ...
1
vote
1answer
36 views

How can marge these loop code?

I just need an idea where to put this code: $term_featured_image_id = get_term_meta( $custom_term->ID, 'wp_travel_trip_type_image_id', true ); $image_url = wp_get_attachment_url( $...
2
votes
0answers
41 views

get_queried_object error How to show post count by month in the taxonomy page

Can anyone help me please. i want to show custom post type count by month of taxonomy in archive page for current year. Example: January 24 February 43 March 5 April 6 and etc. This code is help ful ...
0
votes
1answer
29 views

Showing taxonomy terms on custom post type

I have a custom post type named movies and taxonomy is genres. Now there's a movie "random" with genres "horror" "drama" "adventure" What I want to do is: list all of the associated genres on that ...
0
votes
0answers
16 views

How to quickly fix duplicated term slugs in hierarchical taxonomies?

my problem is that I've imported in wordpress some hundreds of terms of a custom taxonomy, from another system, in 5 languages. I've found out those terms have sometimes duplicated slugs, and they're ...
1
vote
2answers
31 views

get_terms <select> <option> adds slaces to the resualt

If I run this code I get the desired result <?php $terms = get_terms( 'call-type' ); if ( ! empty( $terms ) && ! is_wp_error( $terms ) ){ foreach ( $terms as $term ) { echo '\''...
2
votes
2answers
500 views

How to return a list of custom taxonomy terms via the Gutenberg getEntityRecords method

This method for @SE How would I get a taxonomy/category list inside a Gutenberg block? does NOT work for custom taxonomies, e.g.: wp.data.select('core').getEntityRecords('taxonomy', 'my-custom-...
0
votes
1answer
53 views

Can I get thumbnail of taxonomy?

<?php $args = array( 'type' => 'itineraries', 'child_of' => 0, 'parent' => ...
0
votes
1answer
26 views

Custom taxonomy template list not working (404)

I have created a custom post type 'item': function mywp_add_item_post() { $labels = array( 'name' => 'Items', 'singular_name' => 'Item', 'add_new' => 'Add New ...
0
votes
1answer
18 views

How to loop custom posts that have an exact match in taxonomy terms?

I have created a loop to display programs. One of the taxonomies for each program is a grade or grades. Some programs are for 1st and 2nd graders, for example. I would like to display a div in my ...
0
votes
0answers
33 views

WP_Query Order by meta_key menu_order?

I have a custom post type called Team. This consists of people. Each person is linked to a taxonomy called Team. I want a WP_Query which displays the results by the taxonomy menu order and then ...
0
votes
0answers
58 views

Issue on Getting Custom Field Value Added To the Custom Taxonomy

I am able to add a Cutom Field to The Custom Taxonomy and save it using the following code. I checked the database and the result is saving into the wp_options table like and when I try to get the ...
0
votes
0answers
7 views

Does creating multiple post types make the WP site difficult or interfering?

If there are multiple post types in WordPress (about 10 post type), no problem? And multiple new taxonomies for each post type? And multiple custom fields (ACF) for each post type? (Create a site ...
0
votes
0answers
37 views

True or F False Setting of 'with_front' Parameter of Rewrite Is returning Exact Same result

Setting the 'with_front' to true or false in my Custom Taxonomy is landing to the exact same urls as http://localhost:8080/wp/commercial-services/action/ http://localhost:8080/wp/commercial-services/...
0
votes
0answers
21 views

How to exclude the common terms?

I have two custom taxonomies Tax1 and Tax2. Suppose in a post Name1 is the term name to both taxonomies. Like this Tax1 value is Name1 Tax2 values are Name1,Name2,Name3 But I want to exclude the ...
0
votes
1answer
42 views

Hide product categories and taxonomy terms in menu if empty

I've been researching this and had no luck so far. I have a WooCommerce store with a main menu showing product categories (product_cat) and brands (yith_product_brand) which is a custom taxonomy. I ...
0
votes
0answers
16 views

Isolate parent and child terms

Is there a simple way to get the parent and child terms isolated in a variable on a custom post? Right now the taxonomy hierarchy looks like: Country (parent) City (child) What I want is to get ...
0
votes
0answers
64 views

Custom Taxonomy Archive generates 404

I have a custom post type called "artists". Attached to this is a custom taxonomy, genre. Now, URLs /genre/<post slug> works perfectly fine, however the naked taxonomy page /genre/ gives a 404 ...
0
votes
0answers
41 views

Nested taxonomy handling on wp_query

I am using wp_query to show specific posts to users. I need to filter the posts by 2 arguments ( $artist AND $region_con ). $artist is a single value and is easy to implement in the nested handling. $...
0
votes
0answers
33 views

WP All Import: Import nested custom taxonomies

I have an xml which contains 3 level product categories like this: <family code="04" title-el="Εξοπλισμός Service" title-en="Service Equipment"> <groups> <group code="...
0
votes
0answers
64 views

Custom Post Type with Custom Taxonomy - Permalink issue

Given the situation where: Taxonomy page (taxonomy-x.php): /news/category-name Template page (template-x.php): /news I'm currently using CPT UI - how can (is it even possible?) to have the ...
0
votes
1answer
23 views

Wordpress Custom Taxonomy - If not parent term

I have a custom taxonomy with two levels of terms. Parent term Child term Child term Parent term Child term Child term Parent term (no children) I'm using a custom archive.php template with some ...
0
votes
1answer
32 views

Querying two taxonomies with tax_query not woking

I have a two custom taxonomies: Type Product Type can be the following: Blog Case study Webinar Subject can be: Indoor Outdoor I have two drop down menus in WordPress backend where a user can ...
0
votes
0answers
19 views

Display Custom Taxonomy Associated to Post ACF

I tried different solutions I found here, but can't make it work. I have a custom post type "Properties" and each of the properties has custom taxonomy (diff. multiple categories) which tie-up to ...
0
votes
0answers
39 views

How can I match multiple CPTs in one row in mySQL?

I would like to start a query in the WordPress mySQL database where I connect several CPT's with each other and output them in one row per service CPT. mySQL example:http://sqlfiddle.com/#!9/2ed83c/3 ...
0
votes
0answers
20 views

How to create a Settings Page with a list of existing taxonomies and allows the admin to associate a CPT with these?

I'm working on a plugin that includes a custom post type, by default this CPT will not be associated with any taxonomies. On the Settings page for the plugin I'm looking to show a list of the ...
0
votes
0answers
18 views

Custom Post Taxonomy Template Not Loading Properly

I have a website I inherited that is exhibiting strange behavior for a custom post type taxonomy template. The post type is resource, the taxonomy is resource_brand, and if it matters, the taxonomy ...
0
votes
1answer
51 views

tax_query: Don’t show posts with parent term when they have a corresponding child term applied

I have a hierarchical taxonomy download-category from which I only want the posts with a parent term to show up: $downloads_parent_posts = get_posts( array( 'post_type' => 'downloads', ...
0
votes
2answers
34 views

Get tags name under custom taxonomy in wordpress

I want to get/show only available tags under custom taxonomy. Here's my code; $tax = $wp_query->get_queried_object(); // print current taxonomy $args = array( 'post_type' => 'types', // ...
0
votes
0answers
24 views

How to do a searchable database of links?

not sure how to go about something. There is a WP website I'm involved into, it's a scholarly database of thousands of links and for now those links are divided in couple of pdf docs which is not the ...
0
votes
1answer
38 views

Custom taxonomy terms not showing as list Gutenberg Editor Wordpress

I know this has been asked before, I have searched all over the internet and encountered several people with similar problem and some of them with solutions (none of those solutions worked for me, ...
0
votes
0answers
13 views

permalinks to show taxonomy and the post type

I have a custom taxonomy which has about 3 levels, parent, child, grandchild which is visible in the URL when you drill down eg: example.com/my-cagegory/parent/child/grandchild/ And then after ...
1
vote
1answer
58 views

Using custom taxonomy to tag posts for inclusion in slider

I'm confused how to properly tackle this and the amount of information on the subject isn't very direct. I am trying to develop a custom slider for my homepage and needed to create a custom taxonomy '...
0
votes
0answers
20 views

Custom taxonomy not functioning correctly

I am using some custom code in my functions.php to create a new custom taxonomy and then hoping to be able to create new and pick existing tags inside this custom taxonomy when editing a page. I have ...
0
votes
0answers
18 views

Woocommerce Product don't return custom taxosonomy when using REST api

I created a custom taxonomy for woocommerece product. It's working fine in wordpress. but when I try to fetch it through REST (Javascript), it's missing. All other properties are returning but not ...
1
vote
1answer
216 views

Set download limit and expiry for WooCommerce downloadable products in specific categories

I have the following code that set a global download limit and expiry, for all WooCommerce downloadable products: //FOR VARIATION DOWNLOADABLE PRODUCTS // set 3 downloads for all variation ...
0
votes
1answer
18 views

Multiple Custom Taxonomy Rewrite

I have registered two custom taxonomies of 'location' and 'type' registered before my post type of 'chalet' and have the rewrite rules set to 'slug' => 'chalets/%location%' 'slug' => 'chalets/%...
0
votes
1answer
19 views

Wordpress - Form does not filter the results of taxonomies

I created a plugin that uses an array, specific to which posts I want to give my taxonomy so that I can create custom categories, the name of this taxonomy is: categoria We are talking about an event ...
0
votes
2answers
51 views

Get only one custom post from each category

I have create custom post(book). In which i have five texonomy categories: CatA, CatB, CatC, CatD, CatE. & i want to show only 3 posts and i want that these posts coming from CatA, CatC, CatD.(One ...
0
votes
0answers
38 views

Static Front Page not working for custom theme

I'm building a custom theme for a client... I am trying to set up a static front page, but no matter what page I select it falls back to a custom post type archive page. I have confirmed that I can ...

1 2 3
4
5
81