I figured it out. For anyone who needs to find this solution I edited the above code. I changed:
'order' => 'DESC'
to
'order' => 'ASC'
, and
'orderby' => 'meta_value_num'
to
'orderby' => 'meta_value'
to achieve the order I wanted.
Related Posts:
- Ordering posts having multiple post-meta date fields
- Order Posts by Taxonomy and Meta Value
- query order by date on custom type: wrong order
- Display custom post types with custom date field value (before today) & order by custom date field
- How to do WP_Query with two meta fields with orderby clause
- Ordering custom post type by multiple custom fields
- WP_Query of custom post type sorted by meta_key has unexpected results
- Orderby if between two meta fields
- Order Wp Query by earliest of 3 dates meta query
- Using meta_query and tax_query at the same time
- Form action/link to render a plugin in WordPress front-end
- custom post type category count shortcode
- How to order and group custom post type posts by year and month
- Order Custom Post Type by Custom Field Value
- Display Child Pages of Custom Post Type Parent Page
- Shortcode to display Staff post type based on Location post type and Specialty post type
- search suggest – filter post type
- wp_reset_postdata() and wp_reset_query() inside shortcode are not working to reset original page query
- Shortcode for CPT post content in a page
- Meta Query posts not showing on ending date of custom field
- Get the taxonomy of a post hierarchically
- Change sort order when using ‘orderby’ => ‘type’
- Display Woocommerce Orders for specific author [closed]
- Next Post links not working in custom post type shortcode
- Admin Custom Meta Box – Pull Last 5 Posts from Custom Post Type
- Foreach inside shortcode not working as planned
- Configuring a meta query with multiple post types that have the same relationship on a single page
- How to Output which matched meta_keys were found from custom_type_posts?
- Possible to filter custom post type with multiple meta data?
- Manage Columns : order by post_parent’s title
- filter search custom field query
- Order by custom field meta_key date and then by custom file meta_key number
- How to let users choose where to search for posts?
- Query based on custom fields start and end date
- Can a shortcode included in post content add styles to the ?
- How to retrieve category of a post in have_post loop?
- Archive not sorting correctly
- 4 column-loop ordered alphabetically with entries grouped (and labeled) by their first letter
- Ascending Order is not Working in Custom Post Type Listining
- Add a custom meta box for client to order CPT posts how they want
- Checking if looped item has a parent inside a shortcode
- Custom post type sorting: alphabetical order
- get_post_meta is not working inside shortcode
- the_post() is printing titles in page footer
- WP_query – Filter by tax_query and meta_query using multiple select
- Is it possible to load a different sidebar in single.php based on a meta_query filter?
- $wpdb->get_col and ORDER BY?
- Add custom attributes to a post
- Getting a custom post’s custom field based on another custom post’s custom field select
- Querying multiple values from a single key
- Shortcode leaves no space for other elements?
- How can I add a shortcode to query Custom Post Type with ACF in WordPress?
- Custom shortcode works in Elementor editor but not on frontend
- Having Issue on Ordering CPT by Custom Field In Custom WP Query
- Get Posts by Category, Tag , and CPT Taxonomy
- find custom post type post by searching its custom field with my string
- post_type internal ID?
- Custom post type Shortcodes wordpress
- how to create custom post type with dynamic category_name using shortcode
- Get category if used in a custom post type
- Add shortcode inside of the_content()
- WordPress Custom Post Type and Shortcode for Portfolio Items
- WP_Query not resetting after wp_reset_postdata
- Run shortcode in custom script in wp_head if post type is CPT ‘Jobs’
- Custom Query: If One Post Object Field Value Is The Same As Another
- Creating shortcode id for custom post types
- Shortcode is displaying the content on top of the page [duplicate]
- Query for post and costom post_type in same category filtered by meta for post_type
- If meta_value of meta_key is less than today’s date update meta key
- Filter content in shortcode
- fetch custom post by meta key if key value is does not know
- Shortcode with WP_Query more than once on one page
- posts within custom post type all share the same content in the front-end
- Shortcode to return single custom post based on post taxonomy
- Create a WP_Query where if the first value of the first row is equal to the second compare other value
- Change post type depending on shortcode
- Custom Post Type for Shortcode Use – Prevent it display as a post (with slug)
- How to call a post’s metadata in shortcode.php?
- Post ordering not working with custom field
- Looking to Customize YouTube Video Embeds
- Query Posts, order by meta value
- WP_Meta_Query object with conditionals
- Filtered by a custom field, ordered by another
- WordPress giving a 404 page when passing a year argument different than the current year
- Trying to write shortcode with get_post_meta but isn’t working
- orderby parameter not working in custom query
- Sorting by meta_key different to search criteria?
- Shortcode / WP_Query in post changes context
- How to display class name in this shortcode post query
- Using WP meta query to show custom post types by a start and finish date
- Two queries – one with checkbox ticked, one without – comparing meta_query
- Custom Post Type or Shortcode, What to choose? [closed]
- Adding Page Ordering to a Custom Page Type
- Modify a plugin function output from another plugin
- Problems making shortcode with custom post types and taxonomy
- Using Custom Post Meta Values in Shortcode
- Displaying Portfolio Filter by Category Order (alphabetically)
- Why is my custom post query shortcode only showing 1 post?
- display custom portfolio tags
- show most viewed posts of last days by link?