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
- Filter on one post type with taxonimy and get other post type
- Include custom post type that matches taxonomy field in another custom post type
- Showing all posts of the current custom taxonomy on archive page
- Bypass “supress_filters” in WP Query
- WP_Query tax query part of slug
- How to use the query hook/filter?
- Taxonomy Query Relation field not behaving correctly?
- Show posts from a custom taxonomy on a page
- Filter posts in category archive page by year using a dropdown
- How can I made custom taxonomies relationship?
- WP Query Args – Title or Taxonomy Value
- How to Union two different conditions in one WP_Query
- Display filtered results into custom page
- WP_Query ignoring tax_query when is_singular
- Simple Filter between multiple taxonomys
- Slow queries on a huge database
- wp_query for multiple cities (multiple values in a metabox)
- Search Query for multiple categories using ‘OR’ but having certain categories be ‘AND’
- Applying posts_clauses filter to specific queries only
- Add class to first post in custom loop using post_class filter
- WordPress query with items from more than one selfdefined taxonomy as `term` argument
- Query with relation and one without relation using multiple taxonomies?
- WP_Query with different postmeta filter for each categories
- How to display an other custom post type in a different custom post type’s archive?
- Search form not working with custom query?
- Display custom tags on pages that have a specific page parent
- Slow WP_Query with ‘OR’ on meta_query
- Add posts to WP Query object
- Taxonomy and Date in same query?
- Automatically Query Parent Taxonomy
- How to alter local query, not main query [duplicate]
- How to filter a query by date in a shortcode?
- How can I allow sticky posts but cap the query to 1 post?
- Redirect to another page using contact form 7? [closed]
- how to access query string in wordpress?
- find posts that don’t have a custom taxonomy
- How Can I Change The Tax Query For The Main Loop For Taxonomy Archives?
- Taxonomy order exception for specific term
- WP_Query args to show posts from specific custom taxonomy
- Include posts from some categories while excluding from others
- Changing the default wp_search_stopwords
- 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
- Filter post query to only show direct children of category
- Get posts from multiple tax terms
- How to Order a list of taxonomies? orderby?
- Is it possible to add an argument to a custom function added to a filter hook?
- How to make posts unqueryable/unpublish posts where ACF relationship field is an unpublished post? [closed]
- Tax Query only returns for the first of several terms
- Can’t fetch Custom Post Type Data through Custom Query
- get term id from term name
- Get Child Category only
- WP_Query to output chosen term and posts with no term assigned
- Change AJAX filter from POST to GET for URL Parameters
- Using post_where filter only on main query NOT sidebard new WP_Query
- Filtering posts by archive showing all years
- One WP_Query that always shows 1 post from category X and 1 post from “not in category X”?
- WP_Query – How to get all posts of specific days of week by custom field date?
- How to print term name inside wp post loop
- Get posts in taxonomy randomly
- Loop posts based on permalink term
- How to insert wp_users ->user login name to wp_terms when a new user registering?
- How to echo woocommerce category name
- Multiple wp_query on archive page
- Retrieve select tag custom values from array and display them in current page with wp_query?
- How to use a dropdown to filter posts by custom field
- Check if a post has term inside loop
- Remove post type filter added by the plugin in the final query
- WP Query – filtering terms with regex
- How to restrict search on a certain page to only return results against custom taxonomies?
- Filtering by multiple conditions in the loop