Try use meta_value
instead of meta_value_num
.
$args = array(
'post_type' => 'product',
'posts_per_page' => 20,
'orderby' => 'meta_value',
'meta_key' => 'pa_review_date',
);
Related Posts:
- How to get comments by post ID?
- Create pagination and order according to alphabet
- How to display Section for certain time
- What is the most efficient way of implementing a favorite post system?
- Why does get_the_time(‘F j’) return November 30 for all posts?
- Query set using tax_query with relation ‘OR’ modifies category object?
- is_archive() doesn’t work on public query var archive pages?
- When add_query_arg() is necessary?
- Insert html after certain amount of posts?
- wp remove query
- Filter query posts by the count of metas for a meta key
- $wpdb->get_var not returning a result
- Possible to get posts from multiple meta keys/values in a single query?
- $args numberposts variable
- Difference between fragment caching and wp_cache
- Save default value for empty or missing post meta
- Listing posts by grouping dates
- $wpdb->query() vs. $wpdb->get_results() vs. phpMyAdmin
- How to display all posts with today’s same month and day only?
- How to mass delete one line from all posts after site hack
- Query posts by content lenght
- Select User by Joining Multiple Meta Value Results
- $wpdb doesn’t appear to work on page inside of a plugin
- Show featured image as background image from postQuery
- Using $wpdb->update but confused on the WHERE in and SET
- You have an error in your SQL syntax – Help with query
- Make one query for adding entries to database
- add_query_arg() and empty variables inside
- How to export current year posts from WordPress?
- Search query -> Show all pages except certain template
- Query Strings and Woocommerce
- Style Post Differently In Query
- WordPress post type “event” query string fix?
- How do I see the mysql query generated by get_posts( $args )?
- is_search called incorreclty
- Function to delete a post, it’s children and it’s grand children (half way there already)
- WordPress Query wp-terms SLOW
- Dynamically adjust single-posttype.php query, based on current taxonomies
- I can’t figure out what’s wrong with this statement. $wpdb->query update
- Different values for get_author_posts_url and get_the_author (posts 2 posts)
- Problem when try to add ++1 for user meta
- query statement containing variable won’t execute
- Change the destination of the URLs in post.php
- Get posts from category with custom query
- get_users with array as meta_value
- How to exclude posts for current user
- Related post based on content
- Slow Search Queries – How to exclude pages, media, excerpt, authors, private posts?
- exclude pingbacks from wordpress SQL query
- How to interfere to default search to make it search in custom fields?
- wp_posts query slowing down my website
- Advanced Custom Fields – Relationship post foreach query
- WP_User_Query with more than two custom meta values
- Declaring a var, placing it in a query and using the output of the query?
- how do i register global query in template
- How do I query for posts by custom meta and those that have been stickied?
- Select min/max meta from query
- Combining two meta_values within one row with query
- Sort a list of a CPT ( job) if a meta is empty
- SQL to Query the db and return all posts and it’s metas
- Query Post interferes with Pagination
- How to do a sql like query on serialized data of user meta data
- My archives page won’t sort posts by month
- Restore WordPress Backup Locally?
- Trouble migrating custom post types from non-wordpress cms
- Order WordPress Query by Custom Field While Still Using Tax_query Argument
- How to get all images in Media Gallery with pagination?
- Attachment page tag queries & posts not found
- Not getting input from get_query_var
- Create a new post on a specified publish date via link?
- Exclude Posts from a Widget
- New custom post type entries are not sorted correctly in admin using pre_get_posts
- Query String for the WP_QUERY parameters
- Performance of wp_get_attachment_image_srcset() and wp_get_attachment_image_url()
- YearMonth datequery
- Query Posts that have or don’t have a meta_value and order by the same ASC
- What is the best way to query posts based on live data?
- Why the pre_get_posts hook can cause apache stopped working?
- Multiple terms not working on taxonomy
- Query for distance OR taxonomy term
- Sorting of coupons in the right way
- How to query custom post type one after another
- How to display a specific category using a custom Query in WordPress?
- Apply ordering args to newly merged queried
- excludeCat function reverses order of blog posts
- There is way to improve this query? wordpress get post data and some meta data
- Get blog id of subdirectory multisite blog from name – *outside* of wordpress request processing
- Cannot retrieve home url with custom queries
- Remove last comma from this query
- sql for querying post and their category
- WP_Query orderby meta key/value suddely stopped working
- WP_User_Query. Whats wrong with ‘relation’ => ‘OR’
- WordPress: paginating array using a foreach
- WordPress Unknown Query
- List of buyers for each product
- Where can I find the SQL to get the most used information by wordpress database?
- How do I troubleshoot Maximum execution time of 60 seconds exceeded in updating a Media File?
- update $wpdb one query
- Admin Post List table Query filtering “WHERE” for custom post type
- How to use a dynamic term id for the query block