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.

0
votes
0answers
23 views

How to show custom post count in archive page

I want to show custom post count of taxonomies in archive page..not all custom post counts of taxonomy, i just want to show videos custom post count. because taxonomies have two custom post type. ...
-2
votes
0answers
34 views

Specific custom post type count of taxanomy archive page

I can show total post count of custom taxonomy in taxonomy archive page. but taxonomy has 2 different custom post types and i want show their count separately according to the type of custom post. i ...
0
votes
0answers
19 views

How can i echo next and previous custom category from a Taxonomy

i have create a custom Taxonomy with CPT plugin. In that taxnomy called test i have 4 categories ( test1, test2, test3, test4 ) When i am in archive page in category test2 i want to echo a simple ...
0
votes
1answer
33 views

Add term slug in URL of custom post type details page

I have created a custom post type called "movies" and I have added custom taxonomy "Available for " and it contains two terms Rent sales. Current movie post details page URL movies/avengers-endgame/...
0
votes
0answers
13 views

Include CTP slug to custom taxonmy URLs

I am trying to rewrite a custom taxonomy url to include the CTP slug to which the taxonomy is assigned to. For example: https://www.example.com/motors/taxonomy-slug/ Where motors is the CPT slug ...
2
votes
1answer
8 views

Taxonomy page template changing when using query variables

I'm hoping someone can help me fill in the gaps in my understanding of page templates and query vars: I've registered a custom taxonomy 'stream', and have set up a page template for that taxonomy, ...
0
votes
0answers
11 views

Taxonomy Query String convert to Url

In my site, I use woocommerce and a plugin filter to combine wordpress category with custom taxonomies. If I in my sidebar filter I select one category and one custom taxonomy i have this link ...
0
votes
0answers
19 views

How to include custom post types and custom taxonomies with WP_Query

Hi guys there any way to include or join custom post types and custom taxonomies with WP_Query below? static function &get_wp_query ($atts = '', $paged = '') { $args = self::...
0
votes
1answer
12 views

I want to create a metabox under custom taxonomy

I have a custom post type and A custom Taxonomy under the post type. But I want to add a metaboxes under the custom Taxonomy. My code is not working, Please can you help. Working Code // Register ...
-1
votes
0answers
12 views

Newspaper theme: How to make blocks filter by custom post and taxonomies

By default tagdiv newspaper theme not support filter by custom post or custom taxonomies in ajax filter in blocks. Any help please?
0
votes
0answers
8 views

Create a Taxonomy for Easy Digital Downloads (EDD) Plugin

I was trying to create a Custom Taxonomy called "Metodología" for the EDD Post types, but I dont know what I need to change in my code to affect this Custom Content type, can someone help me? I think ...
0
votes
1answer
99 views

Taxonomy list. Order by a specific custom post type count

I have a custom taxonomy and two custom post types (A and B post types). I created a taxonomy list and this list also display B posts type count of taxonomy. Taxonomy list is ordered by post count. ...
0
votes
0answers
8 views

Wordpress page attributes on tag edit

I have it done for categorie but I need also the page attributes on te tag edit page and add tag page. How can I do this? See attachment.
0
votes
0answers
17 views

Taxonomy shows up twice on Custom Post Type

I created a new Custom Post Type called Articles & Issues. I then created a new taxonomy called authors on this CPT. I then went into Advanced Custom Fields and created a field group called ...
0
votes
0answers
11 views

Sort the cards according to the slug value

[CẬP NHẬT] Giá cả những văn phòng làm việc cho thuê quan Tan Binh Thị trường văn phòng làm việc cho thuê Quận Tân Bình mang nhiều điểm tương đối vượt trội. Hơn thế nữa, trong thời gian gần đây, những ...
0
votes
1answer
20 views

How to create meta fields with more than 1 relation?

I am creating a recruitment plugin. There's a custom post type called opening, and it has a metabox which displays a select field with a list of candidates(each option's value is the candidate's ID as ...
1
vote
1answer
16 views

Sorting Tags by Slug Value

In wordpress the tags are display alphabetically by default. How can I sort the tags by slug value and keep that order in the front end?
0
votes
1answer
24 views

How do I return all terms from multiple taxonomies?

I need to generate a sorted array of all the terms within a set of (six) taxonomies (custom tags) for a custom post type without any duplicates (of which there are likely to be many). Is this ...
0
votes
1answer
6 views

Twin value tags as an esoteric taxonomy

I suspect the answer might be, get ready to write some SQL but I'm going to ask anyway. I have a situation where I am pulling data from an outside source and storing it in a custom post type. For the ...
0
votes
0answers
29 views

Custom Taxonomy Rewrite redirects back to home page

I have a custom post type with two taxonomies set. On my Episode CPT I have a rewrite arg set to "rewrite" => array( 'slug' => 'bctv', 'with_front' => false ). Then on my Taxonomy I also have ...
0
votes
0answers
11 views

Page not found on page. How to write a rewrite rule for a custom post type?

add_action('init', 'my_custom_init'); function my_custom_init() { register_taxonomy('manufacturer', ['product'], [ 'labels' => [ 'name' => 'Manufacturer', '...
0
votes
0answers
10 views

How to separate the taxonomies list from the form so that editing taxonmies is the same as pages and posts?

Category and Taxonomy admin pages are different from posts pages in that the items are listed and the form is also present on the same page. I would like to separate them for custom taxonomies so ...
0
votes
1answer
29 views

Change CPT permalink to use the category

I have a CPT called teachers and a custom taxonomy called teacher type. I'm using the code below to rewrite the url for the CPT and instead of being like: website.com/teachers/post1 it changes the ...
0
votes
1answer
16 views

Create new Taxonomy, add extra fields, register terms AND extra fields values?

I need to create a new Taxonomy (nbateam), add extra fields to this taxonomy ('code', 'color', ...) AND register them when the plugin initiate. For now I'm able to do everything except register ...
2
votes
1answer
18 views

Get Bottom Most Level Taxonomy Terms?

How can I get the bottom-most level terms for a custom taxonomy? Taxonomy Hierarchy example, Custom Taxonomy: "product-category" Top Level Terms -> Second Level Terms -> Third Level Terms -&...
1
vote
0answers
23 views

Return terms from multiple taxonomies using $wpdb

I would be the first to admit that I know next to nothing about SQL queries, but after numerous searches and some trial and error I was able to cobble together a query that returned the results I was ...
0
votes
0answers
21 views

Wordpress search query, how to modify the sql

I have a problem with the query search, which means I would only look for posts with post_status = published. The problem is that after adding my conditions, wordpress writes an "OR wp_terms.name LIKE%...
0
votes
0answers
21 views

How to get WP_Term object properties for custom post type and custom taxonomy?

Can I get WP_Term object properties for all custom post type and custom taxonomy? Here is the code that I need to replace $categories = get_categories(array( 'include' => ...
0
votes
0answers
9 views

Taxonomy in taxonomy permalink structure

I have a custom post type advert and two taxonomies advert-category and advert-location. By default it looks like: .../ads/advert-category/ archive for categories .../place/advert-location/ archive ...
0
votes
1answer
12 views

Wordpress wp_query() basic question about args

Can someone tell me the comparison of these three query statement: 1/ Is it nline code ? I don't know what is it call. $getposts->query('post_type=projects&taxonomy=projects_categories&...
0
votes
1answer
29 views

Use the custom post type archive for taxonomies?

Im using a archive-cpt.php template page to display all my custom post type posts but now I will be categorizing them in taxonomies. I want to add a dropdown filter navigation that will be populated ...
0
votes
0answers
29 views

Custom dropdown list taxonomy not saved

I'm currently modifying a theme, freelanceengine, and I'd to add some customs fields in profile editing page. I succeed in creating the customs fields but my changes are not saved <div id="...
0
votes
0answers
33 views

custom taxonomy not showing in Gutenberg

Gutenberg does not show our custom taxonomies in the editor sidebar. They have always been there using the classic editor. I have addressed the usual suspects (see below) but had no luck. Here is what ...
0
votes
0answers
11 views

Multi language compatible series plugin

I'm using Polylang to offer a German and an English version of my blog contents. Polylang has many ways of translating your blog contents, including custom taxonomies. However using the organize ...
-1
votes
0answers
24 views

How I can get custom post link by two custom taxonomies IDs

I have in loop list of taxonomies IDs and one ID of second taxonomy example: <?php if( have_rows('taste_category_settings') ): ?> <ul class="product-wrap__category--...
0
votes
1answer
11 views

Change custom post taxonomy values from front-end

I'm developing a ticketing system which already has the custom post type for the tickets with a "status" taxonomy. I have the tickets displayed in a table on the front-end and the status column has ...
1
vote
1answer
21 views

Custom WP Query on custom meta and sort by multiple meta keys value

I am testing something out and I have a query like this: $paged = 1; $filter_min_price = 5; $filter_max_price = 300; $products5_cat_term_id = 368; $filter_brand = "Now, Garmin"; $sort_order = "ASC"; ...
0
votes
0answers
13 views

show count and sort by curtain post type in taxonomy list

i have a taxonomy list with post count and it sorted by post count. but i want taxonomy list to show only curtain post type count and sort by ount of this post type this is my code function ...
0
votes
0answers
14 views

Set custom post type posts as children of all pages

I'm sure this is possible, but I can't seem to get my head around the best way of setting this up. We are building a website that gives each of our clients a video library page. The videos are stored ...
0
votes
0answers
22 views

Conditional actions by user role

I am making a paid subscription site using Paid Memberships Pro and I need to make some custom actions by user role. All I have found is conditionals for current user, so I figured I can check ...
1
vote
1answer
18 views

Filter WooCommerce admin products list by a custom taxonomy

I have written code that filters products by manufacturer. On one website this code works on second not working ... can you help me with this? After filtorvani products website take one product even ...
0
votes
0answers
15 views

get_the_terms taxonomy for more than one

I have this Code that checks for a taxonomy called 'video-genres' It works fine, but I want to to check for another taxonomy called 'video-categories'. It must basically check for one or the other ...
0
votes
0answers
11 views

show posts using wp_list_categories

I want to list all parent, child, grandchild etc. taxonomies and the posts for those. Currently it lists all the taxonomies nicely indented in correct hierarchy but it shows no posts. Can you show ...
1
vote
1answer
18 views

Custom Taxonomy not showing as option on custom post page

set up a custom post type for service and a custom taxonomy for service type. The services post type is showing up but there is no option on the page to add the services-type taxonomy. Here is my ...
0
votes
2answers
42 views

How to search from specific post type with tags?

UPDATED: I have a Custom Post Type Commercials. This post type has a title and a video id. I want to search from this specific post type. Right now it returns result which matches the titles only, I ...
0
votes
0answers
30 views

Wordpress not saving <p> tags for custom taxonomy term description

I'm using wordpress API to display content. I'm using the classic editor since guttenberg is bugging out elsewhere. I noticed that if a paragraph does not have inline styles, wordpress does not save ...
0
votes
0answers
25 views

Wordpress taxonomy terms archive template help

I have custom post type Named Trips , Taxonomy > Destination , Region Activity Etc. Region Terms are , Annapurna , Everest etc. Activity Terms are trek, hiking, tours etc. I made an archive template ...
0
votes
1answer
24 views

How to Implement Custom Taxonomy Conditional Page?

I want to create custom taxonomy conditional page. My post type is "laptops". My current code dose not working. But this code work for post_type "post" section. add_filter( 'template_include', '...
0
votes
2answers
24 views

How to have a dynamic slug and rendering the archive-{post_type}.php?

So I have a Custom Post Type named network and Custom Taxonomy name company_category. Everything is all good until I can't render http://localhost/digitalhxstaging/company. Both Company Category and ...
0
votes
1answer
78 views

Rewrite CPT slug with two taxonomy slug instead of one

I have a post type location with 2 taxonomies in it - service & sector. Now, normally wordpress would show the permalink like - site_url/location/post_name I've made it work to show - site_url/...