Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
32 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 ...
php-b-grader's user avatar
0 votes
1 answer
21 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 "...
Jillian Hoenig's user avatar
2 votes
1 answer
187 views

Custom taxonomy with custom meta value is not sorting correctly (query returns the same value for orderby regardless of sort column click)

I have a weight class category, where I want to sort by weight so Heavyweight shows at the top, and Flyweight at the bottom. I have created a custom meta field called 'weight' where I store an int ...
Mac Cooper's user avatar
0 votes
0 answers
78 views

Hook to filter based on form value and insert term

I am working on a form where I am trying to insert a term to a taxonomy. So I have a drop down select with a list of my taxonomies and then the next field is a simple text field where the users will ...
spyfly's user avatar
  • 1
0 votes
1 answer
595 views

How to _GET multiple value checkbox WP_Query in Custom Toxonomy / Custom Fields

I try to make a sort of fiter for my website. Goal is for the visitors to query results by prices ('prix') and hobbies ('aimerparlapersonne'). Prices are numbers between min and max. Hobbies is ...
frontcodelover's user avatar
1 vote
1 answer
147 views

Dynamic template page calling shared taxonomies CPT or Plugin post type : how to clone taxonomy for plugin + set up dynamic shortcode

I'm building a website pro-bono for a friend searcher and making a template for 280 pages which will have the same structure as we want to be able to modify it in 1 place. I do this with elementor ...
Picturgency's user avatar
1 vote
0 answers
111 views

How to filter wp_list_categories output with some custom post type meta query?

The main point, why i want to do this, ..is to be able to filter these term listings conditionally, such as: if the CPT that is connected with this taxonomy has some meta fields that are empty or have ...
Viktor Borítás's user avatar
2 votes
1 answer
288 views

how to create a proper query for getting a list of users with taxonomy related meta key

I want to list user based on the sub category (which is a taxonmy). It displays users from all the sub category rather than the one I select the sub category from the back end. The code is below, ...
Emma Expat's user avatar
1 vote
2 answers
1k views

How to show the a custom taxonomy term on single post metadata

I have a custom taxonomy called "Sources" (using Custom Post Type UI), where the sources are the names of publications where articles were originally published. Each post is an article, with a source ...
Jon Fergus's user avatar
0 votes
1 answer
331 views

WP Query Conditionally query meta and taxonomy

I develop a plugin which includes a custom post type that is displayed as a list within WP Admin. There are varying levels of users defined within the plugin and a few other options which determine ...
Mike's user avatar
  • 447
0 votes
1 answer
187 views

Complex Taxonomy scheme

We are building a resorts site and we're facing a huge taxonomy problem. On one side, we have administrative locations such as country>>region>>department and "natural" locations, such as mountain-...
Karls's user avatar
  • 49
0 votes
1 answer
2k views

Wordpress search form and search result through ACF field in custom taxonomy

I asked this question on stack overflow but haven't had any joy thus far. Link: https://stackoverflow.com/questions/41716882/wordpress-search-form-and-search-result-through-acf-field-in-custom-...
Laura Clarke's user avatar
0 votes
1 answer
40 views

How to show one post content in another post content which has same terms?

I am trying to solve a problem for last two weeks but still I haven’t not found any solution yet. Let me explain my problem first: I have two custom post types: one is football_fixture and second is ...
bdtheme's user avatar
  • 145
1 vote
1 answer
2k views

Meta query for a custom taxonomy on attachment

I have a custom taxonomy "length" with 3 values ['long', 'medium', 'short'] I have attached this taxonomy to attachments (using CPT UI) Upon viewing the taxonomy I can see that I have successfully ...
Kudos's user avatar
  • 13
0 votes
1 answer
4k views

WP REST API - get custom taxonomies based on terms & filter

I need to get the list of data's with taxonomy term property_category,based on this property_category having data's like apartment,house,office etc.For example localhost url given http://192.168.0....
sankar muniyappa's user avatar
2 votes
1 answer
220 views

How loop through posts based on custom fields

I want to loop through posts and show only those posts for which the custom field i.e _shopis not empty I am always confused with meta query and even not sure that if this is possible using this ...
terminator's user avatar
0 votes
1 answer
152 views

Custom loop - Isolating post meta output depending on current query taxonomy terms

I have started constructing is a page to display a series of products based on certain criteria. Each product is part of two separate taxonomies, one for brand and one for product size (each product ...
Chris Chaney's user avatar
-1 votes
1 answer
478 views

Querying by taxonomy vs Querying by Custom fields Speed Comparison

I'm developing a listing portfolio for our project. (Basicaly yachts with their type, size, price, cabins, draft, build year, refit year etc.) I should filter them according to type and sort by (...
Deniz Porsuk's user avatar
1 vote
2 answers
3k views

wp_query check if integer exists in custom field's array

I'm using a wp_query to find custom posts that have a specified numeric value inside of a custom field. That custom field's value is an array of numbers (IDs of selected posts using Advanced Custom ...
Joe's user avatar
  • 204
0 votes
1 answer
7k views

WP_query - Filter by tax_query and meta_query using multiple select

I have a Publications Post Type, a Writers Taxonomy and a Publications Custom 'Meta Box' Value; parent_id. In my archive-publictions-post.php template I am trying to filter the WP_Query Class, with ...
user1575949's user avatar
2 votes
2 answers
7k views

Displaying Metabox value (custom post type taxonomy)

I have been stuck on this for days, reading articles and articles and nothing works. I am trying to display the value of my metabox on a template page. I successfully added the metabox, and I see ...
Misty's user avatar
  • 121
1 vote
1 answer
1k views

How to implement custom search with input fields?

I want to implement a search form like this: Loan Form In my theme I have a custom post type called Data with the Year and Money custom fields. I googled a lot but can't find a way to submit the ...
rafsuntaskin's user avatar
2 votes
1 answer
3k views

Query for custom post type objects in a taxonomy and with a meta value

I want fetch all posts from the post type book in the custom taxonomy book_tags with the meta key lang and the meta value en. My code: <?php $args = array( 'post_type' => 'book', ...
kytdesigner's user avatar
3 votes
3 answers
5k views

search query within custom taxonomy term, post title and meta field

I want to create a search that does: Search within my custom taxonomy - custom-tags search the post title search select meta field ?? dont know search with custom post type - easy part I looked ...
TheDeveloper's user avatar
1 vote
1 answer
3k views

$wpdb query a post type within a specific taxonomy term while ordering posts by custom meta value?

I have a custom post type 'event', a custom meta field 'event_date' and a custom taxonomy 'locations'. I want to query $wpdb to retrieve posts in this way posts must be of the 'event' post type '...
unfulvio's user avatar
  • 1,824
0 votes
1 answer
2k views

Help With issue on pre_get_posts filter in taxonomy

I create a function to filter the taxonomy query with this code add_action('pre_get_posts', 'custom_taxonomy_query'); $option_taxposts_per_page = get_option('tax_posts_per_page'); function ...
nonsensecreativity's user avatar
1 vote
2 answers
4k views

Passing form inputs into multi-taxonomy query

I'm in the process of building out a search page to perform a query on a custom post type and its associated meta and taxonomy. Eventually, I would it to query multiple taxonomies as well as compare ...
nfaust's user avatar
  • 13