You have missed meta_value
parameter.
You can use like this :
$today=date('Y-m-d');
$args = array(
'numberposts' => 10,
'post_type' => 'events',
'meta_key' => 'event_date',
'meta_value >=' => $today
);
// get results
$the_query = new WP_Query( $args );
Related Posts:
- How to use a custom post type as front page?
- Querying Posts by Taxonomy From Alternate Network Site
- Query by 2 values of a repeater ACF field
- Comparing timestamps in meta query doesn’t work
- Display two post types ordered by two custom fields
- Include both default and Custom Post Type in query modified inside pre_get_posts
- Want to filter only parent post in admin area
- $wpdb returns no results with SELECT query on custom post type, works on default post type
- Inserting data into `post meta` table?
- Having trouble with custom date field for CPT query (WordPress)
- WP_Query search posts by custom post type and custom taxonomy
- Calculating Bayesian average for custom post type
- Conditional to modify query results
- Is it possible to create a shortcode that will query a post based on taxonomies?
- Querying Term Posts in Loop
- Use get_post_types to query only custom posts types
- WordPress Orderby Numeric Value Not Working
- wpdb custom post_type problem
- Search / Filter posts on Title/Content OR Tags
- Converting the_content string to an array?
- creat filter with wp_query
- First custom field value (out of several) displayed twice after query
- Prioritize posts in query by meta keys?
- WP_Query orderby and tax_query
- Different Ways to Query Custom Post Types?
- Showing specific post in order of array wp_query
- WP_Query() with custom post type and taxonomy — get all terms?
- WPDB for post count on post
- Returning a custom content types with meta values
- Create query for both custom post type and category
- foreach loop inside the loop creating duplicates in output
- Query custom posts from custom taxonomy
- Is there a (preferable built-in) way to check what custom queries are used in a theme?
- Change search query in wordpress custom post type
- WP Query from two Custom Post type fields as statement
- WP Query: If field X is empty, show posts based on field Y
- Does this archive template part look like its making too many calls to the db?
- How select query is generated in a Custom Post Type?
- WP_Query for custom taxonomies showing posts from non-specified terms?
- WP_Query with all posts in one custom post type and only posts in another custom post type with a specific category
- post type => ‘any’ not applied my custom queries
- Linking posts together with Advanced Custom Fields “both ways”
- How to use costum database table for custom post type
- Get posts of an specific term of a custom taxonomy
- Conditional posts in WP_query for search
- Query Pulling the same post twice
- Is it possible to add query parameters on the archive page?
- Query child posts on parents single.php?
- Query Posts From Multiple Post Types
- WordPress can only query up to 766
- Retrieve post data via WPDB class
- $wpdb returns no results with SELECT query on custom post type, works on default post type
- Filter Custom post type by another Custom post type
- Create a list of months based posts
- Create a WordPress Database query to find users who purchased specific product through WooCommerce [closed]
- Load posts via AJAX without draft status
- Query Multiple Post Types and Paginate Newly Created List
- Query custom post type with tags
- Convert simple SQL Query to WordPress query
- Get next and previous 3 posts in a term in single post page
- wp_query check if integer exists in custom field’s array
- Add meta value to custom post type on publish
- Wrong request query on cpt and tax
- Previous/Next Link by Meta Value in CPT
- Show custom post type filtered by category
- Randomize Posts. Skip the first post in ascending order
- Creating a navigation menu of all posts of a custom post type and their children posts?
- Get custom taxonomies from multiple posts
- Making certain categories of CPT not publicly queryable
- Pagination for Custom Taxonomy Page [duplicate]
- Filtering WP_Query
- using $wpdb to get custom post type with term
- Pagination on with query_posts in custom post type template
- Wp_query: sort by PHP variable
- WP_Query most viewed posts, in multiple Post Types, last 30 days, excluding a specific taxonomy term
- Custom-Posttype & Custom Taxonomy WP_Query
- Crafting WP_Query array, sort by date
- Custom loop with multiple taxonomy queries
- Return one unique custom post type result when it shares a custom taxonomy in WP_QUERY?
- Get parse_query filter to return slug instead of id
- forming WP_Query for posts of all post types but from specific categories
- Get latest 3 posts from multiple CPT in one query
- Loop to fetch 3 post_thumbnail instances from 3 most recent custom post types named “portfolio”
- Querying both pages and posts
- Custom Query num_rows returns wrong amount
- Display upcoming Events for next 7 Days
- Meta query for custom post type ignored in main query
- Isotope Filtering with Bootstrap Tabs – Custom Post Type Query Loop in each Tab (Have to click twice to filter)
- Custom post ui plugin & WP_Query – Polylang
- Querying Two Custom Post Types with OR Not Working
- How do I move/order posts with a tag to the end?
- How can I get the number of custom post type posts that have a specific attachment image set?
- Display custom fields from custom posts in RSS feed
- How to use load more custom post type data normal or according to on click category tab In WP
- orderby rand is not working for a custom post types
- Problem querying Custom post type by custom fields
- Orderby CPT custom fields not working
- Custom taxonomy rewrite give pagination 404
- WP_Query order by custom field, then randomly order some of results
- Iterating through $wpdb query without using get_results for large query results