Maybe I’m looking too simply, but your code sets the order_by for the query here:
'orderby' => 'meta_value_num',
If you change that to “post_date” it should put them in date order, though you may want to look at the other sorting options here:
Related Posts:
- Using meta_query, how can i filter by a custom field and order by another one?
- visually sort ordering “custom post types” for end users
- ORDER BY custom field value
- Sorting: custom query with orderby meta_value_num THEN by title
- How to query_posts using meta_query to orderby meta_key AND have a secondary sort by date?
- Custom Table Column Sortable by Taxonomy Query
- How do I allow users to sort posts? [duplicate]
- Sorting results from JSON-API on custom fields
- Sort users in get_users() in custom order
- Sort by custom field value
- How to sort posts with the first 2 or 3 by latest, and the rest is random?
- Advanced orderby with multiple meta_query
- Get “wp_get_nav_menu_items” to sort alphabetically [duplicate]
- Ascending sort order for monthly & category view, i.e. ?m=201204, ?cat=4
- Possible to create a permalink to sort with meta_key?
- Adding Sorting to Website?
- Sorting by tag or category
- get_terms orderby name as numbers
- Creating a category page by alphabet
- Using database meta_values to calculate new post order using pre_get_posts or a ‘request’ hook
- Sortable admin column for one meta key with three possible meta values
- Sorting posts by multiple values, combined
- Meta query with order by another custom field
- Sorting get_post_ancestors array
- Sort Posts by Multiple Meta Values [duplicate]
- Multi-level ordering in WordPress
- Sorting for custom column in WordPress admin post table
- How to orderby meta_value_num with dollar ($) sign
- Help alphabetically sorting $terms from get terms(‘wpsc_product_category’
- Vertical alphabetically post columns
- Advanced custom fields sort repeater by date
- Displaying posts sorting by a custom criterion
- Sorting custom post type by usermeta
- Sort posts by meta key that is serialised with other meta keys
- orderby field – list of available options?
- User Query sort on custom field then name
- WP Query sort by meta value
- Help ordering Post loop by two meta values
- Best Practices for a Completely Customizable Homepage – without plugins
- Sorting posts by custom field value
- How do I create a sort capability by Title, Category, Author, Date?
- How to avoid duplicating same meta_value?
- Sorting/Filter posts from front-end in WordPress blog
- ‘sort_column’ => ‘menu_order’ not working
- ORDER BY custom field value out of where clause
- Sort scheduled posts in ascending order by default
- How to sort by number
- change order of images attached to post
- sort items by randomness
- Sorting search results with custom dropdown
- inner foreach loop sorting
- Sortby parameter to sort users
- Update meta_key value for a page
- Sort my event calendar by date
- How to “orderby” the first array in a meta_query that uses multiply keys?
- How to order query results based on if a custom field has been populated, then the order by the date of the post?
- Table Sorter sort by span title?
- Order (by ASC) posts with meta_key so posts without values are last
- Sort products by Sale price and stock status
- wanted to sort the wp_query array by two ACF field (Year and month)
- make two custom columns sortables
- How to display remaining post ( in post__in ) if posts are less then post per page?
- ACF pro: Group teaser by datepicker year and display custom sub fields [closed]
- Sorting in WP_List_Table class
- meta_query orderby sort multiple keys
- How to sort custom posts including null meta-values in admin columns with meta_query?
- Sort an array with an ACF meta key
- display wordpress user who published a pending post of another user
- Static front page and orderby
- Advanced sorting of content in wordpress [closed]
- Sort posts by first content letter
- Sorting: custom query with orderby meta_value_num THEN by title
- Grouping posts starting with same letter
- Getshopped (WP-e-commerce): show all protucts on one admin page for drag-and-drop ordering [closed]
- Sort Posts with custom meta key by default which is currently set as optional
- List CPT by menu_order with children right after parent
- Multidimensional array sort?
- How can users sort multiple pages?
- Sorting not working with get_posts
- How do i Sort my Posts
- How to resort my id in wordpress?
- Custom taxonomy with custom meta value is not sorting correctly (query returns the same value for orderby regardless of sort column click)
- Sort Featured Content by Order instead of ID
- Meta query sort order is lexigraphical instead of numeric
- Meta_query compare operator explanation
- meta_query with meta values as serialize arrays
- Can the Next/Prev Post links be ordered by menu order or by a meta key?
- Using meta query (‘meta_query’) with a search query (‘s’)
- Nested meta_query with multiple relation keys
- How can I create a meta_query with an array as meta_field?
- Query to sort a list by meta key first (if it exists), and show remaining posts without meta key ordered by title
- Sort results by name & asc order on Archive.php
- meta_query ‘compare’ => ‘IN’ not working
- How to do a meta query using REST-API in WordPress 4.7+?
- How do I set the default admin sort order for a custom post type to a custom column?
- Filtering multiple custom fields with WP REST API 2
- Ignoring initial articles (like ‘a’, ‘an’ or ‘the’) when sorting queries?
- Make custom column sortable
- Use REGEXP in WP_Query meta_query key
- Sort pages in loop by admin’s page attributes order field?