Please have a look in the WP_QUERY improvement and the WP_QUERY Order & Orderby Parameters.
$args = array(
'post_type' => 'event',
'post_status' => 'publish',
'orderby' => array(
'meta_key' => 'ASC'
),
'meta_query' => array(
array(
'key' => '_start_eventtimestamp',
'value' => date('Ymd'),
'compare' => '>='
),
),
);
Hope it will work for you!
Related Posts:
- Meta query with string starting like pattern
- compare meta_query in get_posts arguments
- Getting attachments by meta value
- querying with custom meta field with meta_query
- Order by meta_value_num DESC and meta_value ASC on WP 4.0
- WordPress altering my custom query, How to fix it?
- Querying by taxonomy vs Querying by Custom fields Speed Comparison
- meta_key and meta_value not working together
- Order Posts by meta value AND published date
- How to make Meta Query case sensitive?
- Fetch Record based on meta key dates
- Meta_query with multiple keys and multiple values
- meta_query BETWEEN, but the range is stored in the custom field
- Extend product search with meta in WooCommerce
- how to make members list directory through wordpress post custom meta key.
- Large AND OR query timing out
- meta_value_num not ordering all items
- meta_compare not comparing whole integer
- Display posts with specific value first in query
- Get every post with value in meta key
- add_query_arg to compare and display events from a certain date
- Comparing 2 Decimal Numbers from custom fields and displaying posts
- meta_query weird behaviour, static int will work, but not user data
- Query multiple post types, but different order for each
- Order by the first array within a meta_query
- Query ACF relationship field – Comparator IN – Value array
- ACF: How to query for a given value count of an array like field? (e.g.: How many rows has a `flexible_content` field?)
- How to _GET multiple value checkbox WP_Query in Custom Toxonomy / Custom Fields
- How do i create a custom post query when the meta value is an array?
- WP Query – grouping posts by same meta key, adding together values from another key
- meta_query is overriding default search
- Trouble with serialized metadata
- Comparing Meta Field date in WPQuery using Meta_Query?
- Getting posts by custom field value
- Query against multiple locations within single custom post type post
- WP_Query, ACF field and array
- Order by Date Custom Field
- Query by meta value (add a dropdown of all values)
- Order Posts By Custom Field That is an array of objects
- Custom WP_query and integrating into theme file
- Using custom field as ‘orderby’ value causing post grouping by publish date
- Compare meta key separation
- query post based on comparison
- Get posts by meta value except one post [closed]
- How to get products with the same custom attribute like ean code
- Add indexing to meta_value in wp_postmeta
- Custom WP_Query order by post_meta and (author) user_meta
- Filtering a WP_Query meta_query by numeric values isn’t working
- Perform query with meta_value date
- Trying to perform complex custom field query with order by set to field value
- datetime picker, timestamps and meta queries
- Sorting Posts by custom field
- Order posts by date and then by custom field
- Compare two meta-fields in a wp_query (where meta-field-A is larger than meta-field-B)
- Meta Query querrying several post types based on ACF fields is broken after update to WP 4.1
- How to get sum of meta_values of a meta_key in wp_query according to conditions
- How to count data records in wordpress which have same meta_value in wp_postmeta table?
- WP_Query display next custom post from today’s date
- Ordering Posts Type A by Custom Fields of related Post Type B
- Search Posts with Custom Fields as query
- Any number in meta key (wp query)
- Is it a good idea to improve meta query performance by adding tax query?
- WordPress Comments sort by custom meta key
- Understanding the orderby in WP_Query?
- How to list custom fields as headers and list all pages sharing that custom field under it?
- Modify wp-query and sort by post meta key
- Orderby listing issue
- Query all posts if multiple meta key don’t exist
- wp_query to print posts if have X custom field value
- Why is WP_Query not displaying expected data?
- meta queries do ‘either/or’ checks
- WP Query ordering on a meta field for posts with a date in the future not ordering by datetime
- Selecting posts with a given meta value for a meta key
- WP_Query: getting posts where custom field exists
- How to order posts on each different category?
- Using get_posts to get posts based on a checkbox value with Advanced Custom Fields
- get_page meta query not working, maybe a bug?
- Query by date from custom field
- Is it possible to retrieve posts depending on meta_key LIKE condition? [duplicate]
- Sort posts using multiple custom fields and menu_order in single query?
- Sort custom post by custom field if none order by latest release
- Order (by ASC) posts with meta_key so posts without values are last
- WordPress Meta Query Null Values Order
- show most viewed post
- Why can my filter query SOME metadata but not other metadata?
- wordpress multiple meta value query is not working
- Strange results from WP_Query
- WP Query for Multiple Post Types
- Orderby query does not work for custom fields even with meta query
- make query more simplest and in one query
- Query by Category and Custom Field – Shortcode
- Querying posts with meta key and meta value not returning anything
- Use not custom fields in get_posts() meta_query?
- WP_Query a custom field value bringing back 0 results
- Query posts filter not working
- WordPress Query Default Order if Meta Values Same?
- Custom query (author is post_author or meta co_author) with Pagenavi pagination
- Wp query by 2 meta field – check if they exists / have value
- Custom query with custom filtering returning incorrect results
- Best performance for use Custom Field in WP