Use meta_value
instead of meta_value_num
<?php $course = new wp_query( array ( 'posts_per_page' => '10' ,
'post_type' => 'course',
'orderby' => 'meta_value',
'meta_key' => 'course_date',
'order' => 'DESC'
)
);
?>
Related Posts:
- Get posts by meta value with date
- How to remove Date from Meta Description on SERP?
- Randomizing Post Links Outside of Loop – No Author or Date
- Only show meta on one post type on search results page
- Update post meta date always store 1970-01-07
- How can I prevent the post_modified column in wp_posts from being updated?
- How to update the ‘modified_time’ of a post ONLY when content is changed?
- How do I retrieve the slug of the current page?
- How to extract data from a post meta serialized array?
- How to save an array with one metakey in postmeta?
- WordPress is stripping escape backslashes from JSON strings in post_meta
- Lack of composite indexes for meta tables
- Get a single post by a unique meta value
- Content hooks vs User hooks
- Add post meta based on another post meta value before publish post
- Permalinks using event date (year & month) instead of publication date
- Save both current and new version of post meta
- get_post_meta – get a single value
- delete value 0 in post meta [closed]
- get_post_meta / update_post_meta array
- Exclude a category from the filed under list
- Triple meta_key on custom SELECT query
- update_post_meta not adding anything.(Nor add_post_meta)
- Identifying Importer Posts
- How metadata API works?
- How can I get values using key in Carbon Fields from Multiselect?
- How to sanitize post meta field value?
- Post IDs missing on delete_postmeta action hook
- How trigger to save post when updating post meta
- Create a Metabox that behaves Like a Taxonomy Box
- Views count with time limit per IP
- Get page->parent’s name?
- order by multiple meta_keys?
- how to get all post with the same post meta?
- echo image caption
- get_*_meta doesn’t always return an array
- Generate multiple goo.gl shortlinks for qtranslate bilingual blog
- MySQL Query To Select Post By Postmeta
- Copy content stored in meta to post content
- How to programmatically customise the Contact Form7 notification email prior to sending? [closed]
- How can I convert postmeta from unserialized to serialized?
- add_post_meta adds meta to one more different post
- need some assistance with the checkboxes (selecting/deselecting featured posts)
- get_post_meta() not work for the first post inside the loop
- Custom query, multiple custom keys
- Trying to get property of non-object error using get_post_meta()
- Ordering posts by custom field named “date” in backend
- How can I change the tag contents of individual WordPress posts?
- get_post_meta producing white screen of death
- update_post_meta not working in plugin
- Gutenberg: How to display meta field data in the block frontend (save function)
- Look up all posts by status or meta value – performance difference
- String taken from database table post_meta is showing HTML tags on Frontend
- Can A Post Meta Field Store multiple values that are not in an array?
- esc_attr on get_post_meta [closed]
- Delete posts based on post meta data
- Is it safe to add a new field to meta_value field?
- How do I edit the posted “by” and “on” in the post meta
- How to delete duplicate records in wp_postmeta database table?
- update_post_meta() adding bits in database [closed]
- add_post_meta doesn’t work
- Get posts ordered by meta data
- How to get single value from get_post_meta() array of values?
- Displaying values from related field – if empty shows current post type’s link and title
- get_post_meta inside echo [closed]
- WordPress postmeta: Store data as an array or single item?
- wordpress update multiple posts post meta
- Display Post Meta in Header
- get_template_part() isn’t loading author information
- Array of user ids to list of user names
- Conditional For get_the_author_meta
- Custom fields or something else
- get Insert id for meta field
- Format meta_value [closed]
- I want to Add Feedburner Right After Meta Details
- if get_post_meta function returns empty – Do Not Display HTML
- Custom column on CPT not showing correct value when meta data not set
- How to access post meta on the first time a post is published
- I Can’t get the post_tag name from term_id using wp_set_object_terms
- After updating the custom post type, metafields disappear from the post.php edit menu, how do I fix it?
- How to update/add child posts meta whenever the parent post meta is updated?
- How to query post with meta?
- why is my postmeta table is so heavy
- update_post_meta() throws Uncaught error: Cannot create duplicate attribute
- get_post_meta and add_post_meta not working
- Using a comma instead of a pipe to separate metadata
- show user based on user_meta
- Multiple meta key and value search in the query
- Meta keys won’t add using wp_insert_post
- WordPress delete mysql rows with string
- How Can I extract Image urls from post meta
- Twenty Twelve entry meta data – change and move
- Sorting meta box values by start- and enddate and all dates in between
- Use an id on a button to update_post_meta in post
- get_post_meta image width for lazy load
- Custom Fields help
- WP-API : post_meta not updated… but have another entry
- Parse error thrown by get_post_meta [closed]
- How to get all the related ids without array?
- Remove action of an external plugin after checking if custom post meta is set