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
- Order by & include array by specific post ids
- WP_Query() show posts that end later than today
- Sort Order for a Custom Query in a Post Type Archive Not Working
- WP_Query orderby custom field then post_date in one query
- WP_Query -> sort results by relevance (= most tags / taxonomy terms in common)
- I can’t set meta_key in my custom post type query
- WordPress Custom Shortcode Conflicting with Media Library
- Comparing timestamps in meta query doesn’t work
- Display two post types ordered by two custom fields
- Using shortcodes to parse POST request (containing the data from a front-end form)
- How loop through posts based on custom fields
- Custom query variable – get wordpress to redirect to nice permalink url
- Filter posts with meta_query NOT IN where value has multiple values
- Post the content of a specific “Custom Post Type” post within a post using a shortcode
- Displaying Metabox value (custom post type taxonomy)
- Custom Post Type order by modified date and custom meta field issue
- How to query different post types in specific order?
- CPT Meta Searching
- Generate Shortcodes by Taxonomy
- WP_Query is printing out only one post when posts_per_page is set to multiple
- Ignore sticky posts if post is not in meta query
- advanced search forms with 3 input text and that the main problem 3 input text
- Shortcode doesn’t display in custom post type
- Add category attribute to custom shortcode
- Show listings from Impress Listing plugin in random order using taxonomy and terms
- Shortcode for display posts in wp-editor
- How to alter WP-JSON main query or best practise for custom endpoints
- Display Recently Added Custom Post Types with Custom Taxonomy Shortcode
- Two near-identical custom field types – one works, the other doesn’t . What can cause this?
- Rewrite and custom post type: order by custom field not working
- wp_query check if integer exists in custom field’s array
- Previous/Next Link by Meta Value in CPT
- Wp_query: sort by PHP variable
- Allow user to set custom order to a list of custom taxonomies?
- Stuck in Order by more then one
- Meta Query Filtering not working on Custom Meta Box using Radio Buttons
- Using advanced custom fields from one custom post type in another custom post type / using nested shortcodes
- Admin Custom Meta Box – Pull Last 5 Posts from Custom Post Type
- How to Output which matched meta_keys were found from custom_type_posts?
- 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 ?
- Ascending Order is not Working in Custom Post Type Listining
- Checking if looped item has a parent inside a shortcode
- get_post_meta is not working inside shortcode
- How can I add a shortcode to query Custom Post Type with ACF in WordPress?
- Having Issue on Ordering CPT by Custom Field In Custom WP Query
- Get Posts by Category, Tag , and CPT Taxonomy
- post_type internal ID?
- Custom Query: If One Post Object Field Value Is The Same As Another
- Shortcode is displaying the content on top of the page [duplicate]
- posts within custom post type all share the same content in the front-end
- Looking to Customize YouTube Video Embeds
- Custom Post Type or Shortcode, What to choose? [closed]
- show most viewed posts of last days by link?
- Get Posts List of Current Selected Custom Taxonomy in Shortcode
- Alike Shortcode using in Custom Shortcode
- Dynamic template page calling shared taxonomies CPT or Plugin post type : how to clone taxonomy for plugin + set up dynamic shortcode
- How can I sort the results of a REST API response by the title of a connected custom post type?
- Query posts by current ACF meta key value on single page as related posts
- How can I use javascript in specific posts without relying on a plugin?
- How to select meta key in custom database query
- Use WP_query to match post types based on custom field values
- How to seperate posts by categories?
- Do not parse shortcode in CPT
- Meta_Query refuses to return results
- Shortcode in excerpt
- How to shows CPT which has specific meta key?
- Query events post type after current date and timezone
- Conditional posts in WP_query for search
- Orderby modified only for specific post types
- Events with multiple event dates + permalink for each date
- Filter RSS feed for custom post type to events for next 7 days only
- Order Custom Posts by Several Fields
- Custom Post Type vs Shortcode: Which one is more performant?
- How to call Shortcode categories for custom post types?
- Trying to combine multiple WordPress queries
- Create shortcode for list of custom post titles with custom fields alongside
- 404 on Pages for Custom Post Type & Query_Posts
- Creating shortcodes with user created forms
- WP_Query arguments: Loop through custom post type – get all entries except excluded meta_key?
- Order custom post type is beign ignored
- How to order different custom post type in category or tag template page?
- Adding custom shortcode to page leads to page without styling
- custom post types shortode stays on top of other page contents. Is there a bug?
- Shortcode in a page to display custom posts which also have a shortcode in them
- Passing postid of Testimonial Custom Post in Shortcode Parameter
- Check for custom field value in different post type than current one and do something
- Function to Compare CPT Post Custom Value with Default Posts CF Value
- select categories by ids/display terms only selected