You store date as formatted string, but time()
function you take for comparison returns numeric timestamp. So you are trying to make comparison between too completely different formats and it’s unlikely WP is smart enough to get that.
Related Posts:
- Custom query with orderby meta_value of custom field
- Query Posts or Get Posts by custom fields, possible?
- query_posts and only show results if a custom field is not empty
- Filter archive.php by custom meta
- Order posts by custom field and if custom field is empty return remaining posts
- Query on custom field count?
- meta_value_num sort glitch
- Can ordering post list by meta_value cause performance issue?
- Order by value in serialized custom field
- Author Page Custom Query WHERE author OR [post meta value] OR [post meta value]
- How do I query for a post by custom field?
- meta query not showing any results?
- how can i use custom field in query post
- using multiple meta_key and meta_value in query_posts
- Query post order by post and desc not working
- How can I sort homepage by a meta value?
- Order query by meta_value with multiple custom fields
- Show 1 post and after a specific date show the next one
- How to select posts from multiple categories and metavalues?
- meta_compare seems to be treating values as strings instead of integers as expected
- Change order of posts
- filter custom field values $min $max
- query posts custom field calculation value
- WP Query – Is this correct?
- Query_posts with custom field meta value
- Unable to get specific value from post meta
- Meta_query ‘compare’ => ‘LIKE’ not working?
- query_posts with meta_value
- Custom search SQL Query to add custom field in result
- How to put forward a blog post
- How can I change the publish date based on a custom field?
- Get author total post votes from post meta
- Problem with writting correctly a query posts args in WordPress
- simple fields plugin custom query
- query_posts -> get page_id from custom field
- Checking if field is set before comparing with meta_query in query_posts?
- Filtering posts by WORD in custom field
- Display agents (custom post type) alphabetically, except one who always shows last
- Filter Query Post by Custom Fields(by date)
- How to add a custom field in the advanced menu properties?
- Underscores in custom fields
- Sortable Custom Columns in User Panel (users.php)?
- Adding Custom Field to Taxonomy Input :Panel
- Unable to get Preview of Uploaded image within a Custom Meta box
- How to filter or search the posts using postmeta tables custom meta fields with wordpress REST API
- Custom bulk action for media gallery items
- Order Custom post type loop by custom field (datepicker)
- Localized Date Format for Custom Field
- Login & Register & Custom details WITHOUT plugin
- Compare WP Custom Field date
- Deleted pages showing up when querying for child pages
- Ordering posts by date custom field
- Sorting WordPress Posts via Custom Field Values?
- Custom field as meta description
- post meta getting deleted on save
- Auto Populate Custom Field with Complex Value That Increase by One?
- Display custom field if it exists and has a specific value [closed]
- WordPress: custom field display twice
- Is there any way to get all meta and standard columns for any WordPress object after searching based on meta key and value
- How to add fetchpriority parameter to images in the media library?
- Calling the “wp-link-wrap” pop-up modal
- Editable custom field in WP Admin Dashboard
- Customizing user data
- Trying to sort and display categories(not posts) by custom field: ‘order’
- Custom tables or custom fields?
- Show user info in a hovercard [closed]
- edit_tag_form_fields is depricated but tag_edit_form_fields doesn’t work
- Iterate through users and display users meta info at front-page
- Getting the Featured image URL and inserting it as Custom Field on Post update / publish
- Adding custom field and querying from post table
- How to display a product features dynamically with icons?
- Update custom field values on edit address page woocommerce
- Is there a (sane) way to get all custom fields for a post, which do not have a leading underscore?
- Custom field image to Featured Image
- Show array of meta_value in Edit Post Coloum
- custom filed from post in the side bar
- Working with multiple values and metaboxes
- Unable to select image with custom field
- How to automatically change a posts status to draft based on custom field
- Rewrite comment form post ID on submit
- Move the metaboxes to the very top of post editor
- WordPress Rest API custom field not updating till i manually update the post
- search based on custom field
- Why isn’t update_post_meta saving?
- Custom fields multiple commas separated values
- Display taxonomy loop using custom field data
- Add custom field information to source meta data
- Change blog post title on main blog page
- How to save array option as text and not integer?
- Delete custom meta
- Filter and display a specific custom field value [closed]
- Custom fields are not displaying in page with multiple loops
- Add class from custom field into widget class
- Get multiple posts with some custom fields efficient
- Adding custom field to Lightbox in header only pulls current page data, not Lightbox item data
- Meta boxes not displayed, data isn’t being saved
- Custom fields / meta box output
- How to grab data (titles, thumbnails and custom fields) from multiple posts to populate a new array efficiently?
- Get single image from custom fields made with WCK custom fields creator
- How to add google map to custom field