Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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

How to display recent comments of a specific taxonomy?

I have a custom taxonomy, for example region. Under this I've added several sub terms, such as Europe, Aisa, America. How do I display the comments for posts aligned to Europe only? Edit: I found a ...
1
vote
2answers
12 views

Getting Taxonomy inside WP_Query Loop

I have written my custom WP_Query and using loop to display post content. I use get_the_category() to display categories of current post and it works fine. Now for some post types there are custom ...
0
votes
0answers
12 views

404 error when using pagination with custom taxonomy of a custom post type

I'm using a plugin called Custom Post Type Permalinks to my URLs pretty -> sitename.com/CPT/taxonomy. When I apply paginate_links() to taxonomy.php the function seems to works as it produces the ...
0
votes
0answers
14 views

edit-tags.php custom taxonomy term list count link doesn't work when custom taxonomy is registered to multiple CPTs

On the edit-tags.php admin page for a custom taxonomy which is registered to multiple custom post types the count link's count is updated correctly however the link doesn't go to an admin page that ...
0
votes
0answers
4 views

Additional filters on the taxonomy page

I can't find the way how to add the additional filters to the taxonomy page. I will be grateful for the advice.
0
votes
0answers
11 views

How do I show a list of terms' posts, grouped by a secondary taxonomy?

Let's say I have custom post type article. I have a custom taxonomy fruit, with terms like apples. And another custom taxonomy company, with terms like juicy-inc and crunchy-co. Both are associated ...
0
votes
1answer
21 views

Customise Permalink Structure For Custom Post Types

I've installed the Custom Post Types UI plugin and have made a post type and taxonomy. When I click 'add new' to make a new post the slug always defaults to:- https://domain.com/custom-post-type/post-...
1
vote
1answer
17 views

How to start a new post with custom Taxonomies already set?

Is there a way to start a post and have some default terms already added to the taxonomies?
0
votes
0answers
23 views

Taxonomy URL - combine AND “+” with OR “,” operators in the url

In taxonomy URLs, terms can be combined with : "," to express OR (eg : france,england) "+" to express AND (eg : england+2017) Hence, if there exists a custom taxonomy named "mytaxo" with country ...
2
votes
1answer
70 views
+50

Custom permalink - append taxonomy name and term name at the end of permalink

I have custom post type -> resources custom taxonomy -> resources_type I want custom permalinks where category base will be appended at the end instead of front For example: I add a new ...
0
votes
0answers
35 views

How to modify default taxonomy field to a single text field?

Am trying to find solutions but I can't find one. I want to modify the WordPress field in admin specifically the description I want to update it into a single text field.
0
votes
1answer
22 views

custom hierarchical taxonomy and custom post type list contains surplus posts

I wish to list custom taxonomy terms as titles and custom posts as lists under titles: Basics List item1 List item2 Movies List item3 Images List item4 However, custom taxonomy is HIERARCHICAL ...
0
votes
1answer
29 views

Multiple Custom Post Type in Taxonomy Archive Causing White Screen

So basically I'm trying to add multiple custom post type in my taxonomy archive. Here's my code: <?php $args_trip = array ( 'post_type' => 'trip' , '...
0
votes
1answer
5 views

Display custom tags for custom post listing page

I'm very new to WordPress, but I've created a custom post type with two sets of tags. I've added the tags by using the following code: /** * custom tags */ function gccsi_create_client_tax() { ...
0
votes
0answers
3 views

Display post from child category

I got a code here where it post all my custom categories then if you click a category if the category has child category it will display all the child and if there is no child category it will display ...
0
votes
0answers
5 views

How can i add Custom post type as a child to other Custom post type DashBoard

WordPress #WP_Dashboard #Customize_Dashboard How can I add Custom post type as a child to other Custom post type? Example : City is Custom Post Type Area is Custom Post Type when I enter to ...
0
votes
1answer
11 views

Adding a Section for Visitors

I habe a basic dog care website where I would like to have a lost dog section where visitors can post about their lost dogs with pictures and custom fields like communication and location info. But ...
0
votes
0answers
17 views

How to display custom post type by category or tag on home page?

I found this code, which should display 'ai1ec_event' on home page, with with it's taxonomies. I have own custom post type 'event' which have category -'event_cat' & tag 'event_tag' . How to ...
0
votes
1answer
29 views

Custom Category Walker with Image, Fallback to Most Recent Post in Category Image

Based on this and this answer I am developing an extension of the Walker_Category which displays in image from an ACF field, falling back to the latest post's thumbnail. I have included the entire ...
0
votes
1answer
27 views

List posts that have the current url taxonomy

I created a custom post type "projects" and then I created a taxonomy to categorize my projects "categoriesprojects". I have dedicated a page that lists my projects randomly via WP_Query (archive-...
0
votes
0answers
21 views

Content personalization

We have a quite popular website with about 15k of concurrent visitors on it at peak times and lots of content for them. What we want to build is a module on our home page which will allow users to get ...
0
votes
1answer
25 views

Changing input type from text to multi select dropdown - skill taxonomy

Really need help with a wordpress code please. I have a field on a form which adds tags to the post. Problem is, its free for anyone to enter anything. This keep populating the "skill" taxonomy. The ...
0
votes
0answers
26 views

Total number of different post types using custom taxonomy

I am using the same custom taxonomy (e.g. language) for different post types (e.g. books, music etc.). Is there a way to get and display a total of posts form all the different post types (music, ...
0
votes
1answer
45 views

Add Category Name to REST API

I am using the URL: http://website-url.com/wp-json/wp/v2/qd_leadership to get the data for that custom post type. I then created custom taxonomies for this post type. That only displays the taxonomy ...
0
votes
1answer
30 views

How to show term-specific post list, without posts associated with child terms?

Is this normal WordPress behaviour? I have: Custom post type: "article" Custom taxonomy: "company" (hierarchical) In the backend, when I go to the post list for "Articles", and constrain results by ...
0
votes
0answers
17 views

Modifying permalink of a custom post type results in 404

I created a new custom post type "cpt_bobcat" and I need to alter its permalink. What I need is quite simple but with the plugin CPT UI it's impossible to get what I want : /{post_type_name}/{...
0
votes
2answers
33 views

Listing all custom posts having a specific taxonomy whatever the terms

I'd like to get a list of all the custom posts that belong to a specific taxonomy. I've tried many things including this code, but I get a list of all the posts in the 'members' cpt, and not just ...
0
votes
0answers
28 views

Modify core files to display products by category

I'm pulling my hair over here searching and trying to modify the WooCommerce core files. So, what I am trying to do is modify my theme's woocommerce.php file because I want to display the products ...
0
votes
0answers
25 views

Custom post type structure + permalink structure

I need to create this structure: example.com/animals (with all animals classes) example.com/animals/classes (with all animals of this classes) example.com/animals/classes/animal_name (the animal's ...
0
votes
0answers
24 views

How to filter taxonomy of a custom post type and display it in the single post type page in the back end?

I have a custom post type of products and I want to retrieve its taxonomy terms and display it in the backend. Am using ACF for these tabs and would want to filter the sizes attributes dynamically ...
0
votes
1answer
30 views

display posts of custom post type with custom taxonomy

I have created a custom post type 'CPT_A' with CPT UI plugin. I have also created custom taxonomy 'Category_A' and 'Category_B' for 'CPT_A'. I have Posts 'Post_A', 'Post_B', 'Post_C', 'Post_D', '...
-1
votes
1answer
24 views

How to Create Short Code Using Custom Post type

I am New To Wordpress Plugin Development. I want to Create Short Code using Custom Post Type Method function baztag_func( $atts, $content = "" ) { return "content = $content"; } add_shortcode( '...
0
votes
1answer
21 views

how to show product custom taxonomies in woocommerce rest api

I'm working with woocommerce rest API v1 to build a shop page working with AJAX. What I have tried : created custom taxonomies for woocommerce products post type set show_in_rest to true for those ...
0
votes
0answers
26 views

Why is the term of my current page not returning a slug?

Why is the term of my current page (custom taxonomy) not returning a slug? I have managed to get the following returned in my URL: 0, Array, '/{empty space}/ I am trying to pass the custom taxonomy ...
0
votes
0answers
20 views

WP REST API - Add post with taxonomy using term_name

Hi there we have API requests hitting our WP site to import posts into a custom post type. In the JSON for the post type the taxonomy "job_sector" is sent through as a string using the terms name ...
0
votes
2answers
39 views

How can I change the output display of my pagination?

How can I change the output display of my pagination? I have been trying for the past few hours to format the output of my pagination links (1,2,3, etc.) to resemble the below: I have been unable to ...
0
votes
2answers
40 views

Parent and child categories with their id in drop_down in CPT

How to build your custom drop-down with their id(s) to show your CPT(custom post type) with custom tax categories in WordPress child template
0
votes
1answer
17 views

Change Search display for Custom Post Type

I want the search to not search for custom post type "mitgliederbereich" when on other pages, and when you are on the "mitgliederbereich" page, that only "mitgliederbereich" posts should appear in ...
0
votes
1answer
15 views

Why is my loop not populating the page with my custom taxonomy terms from my custom post type?

Why is my loop not populating the page with my custom taxonomy terms from my custom post type? Currently it is displaying an empty box instead of pulling in the custom taxonomy terms from my custom ...
1
vote
1answer
27 views

Nested Custom Post Type or Custom Post Type Parents?

I'm looking to create some functionality on my custom theme I'm not sure if I need to research nested CPT or CPT with a page parent. So my site will have two pages Cars & Bikes Each car & ...
0
votes
1answer
12 views

WooCommerce - Custom related product (Spareparts)

I’ve googled for ages but I’m stuck. I want to add a link between products and spare parts. For example: The product (A laptop) and the spare part (an adapter) and (a battery). The spare parts fit ...
0
votes
0answers
25 views

How can I get the most Related posts by taxonomy?

In 'genre' taxonomy, there are action, comedy, sci-fi ... I want to get related posts and save it into 'movie' ordered by most matched taxonomy. Followings are my codes But it didn't work... $...
0
votes
0answers
21 views

Sort categories by parent

I want to change the way my categories are displayed under the post. By default all post's categories are displayed in one line. I want to sort them by their parent category. By example: default ...
0
votes
2answers
19 views

Show parent category and subcategory once in while loop

I have tried several things but unfortunately do not manage to do it in a good way. I use a while loop to pick up dealers (custom post type) from different countries and provinces. In this loop of ...
0
votes
0answers
31 views

Get Thumbnail from Page link or Taxonomy Slug

kind of struggling with a task but also writing to see if what i'm doing makes sense. Simple question is I can't return the thumbnail in a foreach loop. Background is I am using a taxonomy to map ...
1
vote
1answer
50 views

How to check the terms in single custom post type template

I have custom post type called events it has event_type taxonomy with two terms namely past-events, upcoming-events. I want to check my single post's term whether it's under past-events or upcoming-...
0
votes
0answers
20 views

WP_Query based on 's' and tax_queries

I have a search form for CPT. Basically search use 's' parameter of WP_Query args. $args['s'] = $search_title; It works pretty nice, but I need to extend search results by searching in taxonomies ...
0
votes
1answer
16 views

I cannot display custom posts in custom taxonomy

I have a problem with display posts in custom taxonomy. I created custom post type m_product and custom taxonomy for this post type m_product_category. I created file in main theme folder named ...
0
votes
0answers
11 views

Trying to get posts in a sub-subcategory of custom taxonomy

I have a custom taxonomy, which is structured like Cars --Ford --VW Trucks --Ford --Dodge And then I have posts in this post type such as "Beetle" and "Jetta" assigned to the "VW" subcategory and "...
1
vote
1answer
17 views

Order by taxonomy Value [duplicate]

I do want to order CTP by year. I have a taxonomy called 'annee' (year), and a CTP called 'moto' (motorbike). Issue is, when im trying to order by the taxonomy, it's ordering only by taxonomy ID, and ...