Try below code for search using date and category.
$_name = $_GET['date-picker-example'];
$categoria = $_GET['categoria_evento'];
$today = date('Ymd');
// Start the Query
$v_args = array(
'post_type' => array('eventi-suite'), // your CPT
'posts_per_page' => -1,
'meta_value' => $_name, // looks into everything with the keyword from your 'name field'
'order' => 'ASC',
'orderby' => 'metakey_AMC_data',
'meta_query' => array(
array
(
'key' => 'metakey_AMC_data',
'compare' => '>=',
'value' => $today,
),
),
'tax_query' => array(
array(
'taxonomy' => 'categoria',
'field' => 'slug',
'terms' => $categoria
)
);
));
$vehicleSearchQuery = new WP_Query( $v_args );
Related Posts:
- How to add taxonomy filter on the query fly?
- Display posts the match taxonomy term linked from wp_list_categoies?
- Filter and list posts of a custom taxonomy
- How to Modify Taxonomy Archive Page with Search Parameter?
- Display link to taxonomy archive only if it has posts with certain custom field values
- Order taxonomy terms in alphabetical order
- Taxonomy search/filter with multiple taxonomies and multiple taxonomy terms
- Function get_queried_object() return NULL in custom taxonomy
- Getting Taxonomy inside WP_Query Loop
- How do I exclude the lowest level terms in a taxonomy?
- Post loop for all taxonomy terms
- wp_query args adding muitiple tax_querys
- Custom taxonomy.php not working
- Filter Custom Taxonomy Posts
- WP_Query for a taxonomy with different taxonomy types
- Using custom taxonomies in a query
- How to add custom meta to ‘pre_get_terms’?
- WP Job Manager plugin – Listing only the twelve job categories on frontpage order by jobs they have
- How to get posts by category and by choosing a taxonomy term?
- relation OR instead of AND – Filtered term ID’s in loop
- get_the_terms has strange result since version 6.0
- Show one post of each custom taxonomy
- Custom category page with taxonomy filters
- Taxonomy archive, categorised by other taxonomy, not hiding empty taxonomies
- How to define a custom hierarchy for terms?
- Taxonomy Terms That Don’t Exist Display Results
- How can I get all the posts that are related with a specific taxonomy term?
- tax_query not working properly with get_posts
- Saving Taxonomy Terms
- WP_Query – filter or directly?
- What is the most efficient way of querying posts based on visits and date for current day?
- Custom query incorrectly returning everything [closed]
- Why is my WP_Query not working when tax_query terms are an array?
- How to filter sql only for a specific post type
- Move posts to top of WP_Query if in certain Taxonomy?
- How to get the parent’s taxonomy?
- Querying Multiple Custom Taxonomy Terms
- Adding session variable and/or cookie based on user-selected input
- How to display term description in empty terms archive?
- WP Query – Get WooCommerce Products with variation that is in stock
- Get array of current post term ID’s
- How to add terms to my tax_query based off of the current post
- WP_Query, tax_query and term_meta: How to?
- Is it possible to dynamically get queried term AND taxonomy?
- WP Query for variable taxonomies
- Fetch taxonomies by custom post type id array
- Current category link filter
- Order posts by taxonomy count
- Complex WP_Query (two post types and multiple operators)
- add_filter() depending on search term
- Genesis filterable portfolio isotope [closed]
- Remove category from query (show all posts in archive.php) pre_get_posts()
- How do I run through a WordPress loop called from a filter function?
- How can I populate a select element with terms from a custom taxonomy and filter post results?
- Categories of custom taxonomy don’t show any posts
- wp_query ‘s’, search filter with pagination is not working
- Display Featured Post by Categories and Avoid duplicated posts
- How to use the query hook/filter?
- How to Union two different conditions in one WP_Query
- Display filtered results into custom page
- Search Query for multiple categories using ‘OR’ but having certain categories be ‘AND’
- WordPress query with items from more than one selfdefined taxonomy as `term` argument
- How to display an other custom post type in a different custom post type’s archive?
- How to alter local query, not main query [duplicate]
- How can I allow sticky posts but cap the query to 1 post?
- find posts that don’t have a custom taxonomy
- get all posts associated with a custom taxonomy
- How to set an alternate posts_per_page value for default queries in different templates
- Variable not working in WP_Query
- Is it possible to add an argument to a custom function added to a filter hook?
- How to print term name inside wp post loop
- Loop posts based on permalink term
- Get posts by category name
- Taxonomy.php how to show post only in current taxonomy with wp_query?
- Don’t repeat posts from children in parent taxonomy query
- Query Custom Post Type by Taxonomy
- Show multiple tax_query from 2 or more post_type in a single code
- Include get_term_link inside search
- meta_query weird behaviour, static int will work, but not user data
- Why is my pagination /page/2 taking me to index.php?
- Strange behaviour of hierarchical taxonomy archive
- WordPress Ajax form filter | Search by title with ajax form, breaks the other filters
- How can I order a post query’s results based on the number of matching taxonomy terms?
- Filter for each loop when WP_Query has no posts to show
- How to add a dynamic dropdown derived from custom taxonomy
- How do I stop the same post showing multiple times in a archive?
- wp_query with meta_query and tax_query
- WordPress custom search form – ignore empty/default input fields upon submission?
- Query a database based on form input then output to another page [closed]
- Related categories order posts by category
- How to break up output of posts for different terms on same page?
- Custom Taxonomy – fields
- taxquery taxonomy get terms
- How to set selected attribute on option after filter query?
- Custom query with post_class filter using current_post not working
- Filter WP_Query output before it is accessed (pre_get_posts)?
- Loop the posts between two dates selected using jquery datepicker
- Multiple Orderby is not working right
- Edit WordPress loop, taxonomies, & filter
- I need to get all categories from a WP_Query