All Questions
Tagged with wp-query custom-taxonomy
391
questions
0
votes
1
answer
19
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 "...
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 ...
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 ...
1
vote
1
answer
25
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 ...
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 ...
1
vote
0
answers
29
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 ...
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 "...
1
vote
1
answer
247
views
wp query order posts by custom taxonomy doesn't work correctly
I have custom wp query and i need to sort it according to taxonomy called 'consultation_records' which contains years 2017, 2018, 2019 etc.
I used this code but the result is the posts not ordered ...
0
votes
0
answers
28
views
Include custom post type that matches taxonomy field in another custom post type
I have two custom post types, one is “maker” and the other “product”. (used ACF plugin)
I have a taxonomy field for Business Name, this field is called “choose_business” in the product custom post ...
0
votes
0
answers
17
views
How to assign a single-menu-template to a menu-items in a taxony/ cat/ subcat/ subcat-item
Hi hope really someone can assist.
I have created a single-meny-template with post-type-meny, and I have created taxonomy, categories, sub-categories and subcat-items.
What happens is that the ...
0
votes
1
answer
45
views
Custom fields disappearing when a custom post type is assigned
I have a custom taxonomy page. This custom taxonomy has a few custom fields to populate it's template. A user is able to assign custom post types and media to this custom taxonomy and then those posts ...
0
votes
0
answers
36
views
I'm trying to get posts under a custom taxonomy but I don't know what I'm doing wrong here
Im using the following php. and I'm only trying to call titles at the moment. I have 4 posts under this taxonomy.
<?php
$shopPosts = array(
'post_type' => array( ...
0
votes
2
answers
73
views
WP Query - Can't get posts with specific taxonomy
I can't get my custom posts with a specific taxonomy. Here is my code in functions.php :
function portalp_custom_post_type_realisations() {
$labels = array(
'name' => ...
1
vote
0
answers
191
views
Custom Taxonomy in custom REST API search
I am building my first theme where I use a custom search and I would like to include the ability to search by custom taxonomy.
Currently, the taxonomy term shows up in Postman but no posts with that ...
0
votes
1
answer
102
views
Dynamically count the number of custom post types associated to a custom taxonomy
I have two custom post types, "participants" and "reports". Both of them are associated with the custom taxonomy "year".
So in the post "report 1" that is ...