Looks like a unix timestamp is being stored in the post meta – so you should compare with a unix timestimp, not a MySQL’s timestamp.
To get the current time as a timestamp you should use the following code:
current_time( ‘timestamp’ );
Related Posts:
- How to set a custom post type to have viewable future posts
- How to add multiple images to a custom post type single post?
- How to sort CPT by custom meta value (date), and return posts month by month
- Save metadata as a timestamp, display as a “pretty” date
- Display upcoming Events for next 7 Days
- Displaying a div from an assigned meta_value when on a page
- Retrieving meta-box from a custom-post-type
- Inefficient Query Confusion
- Filter posts of custom post type by meta key in (List All Section)
- WP_Meta_Query object with conditionals
- How to retrive Custom Post Type Meta Fields in Custom WP_Query
- Empty meta-box returns publishdate if no value is set?
- Custom Post Type ‘Event’: Chronological list of recurring events from meta_values in array
- Wp Meta Query does not work while simple Query Works
- Wp Query sort order from custom MetaBox
- Query events post type after current date and timezone
- Selecting posts older than the current Unix epoch timestamp
- Query Event Posts by Date
- How to query custom post then display sections by meta value
- Custom Post Type + Custom Meta Query Not Showing 2012 Posts
- Count of posts with meta_key filled in?
- Show custom post type filtered by category
- Randomize Posts. Skip the first post in ascending order
- Creating a navigation menu of all posts of a custom post type and their children posts?
- Get custom taxonomies from multiple posts
- Pagination for Custom Taxonomy Page [duplicate]
- Filtering WP_Query
- Search / Filter posts on Title/Content OR Tags
- Pagination on with query_posts in custom post type template
- Why is my select meta data not saving?
- WordPress 3.5 Media Uploader – Only allow 1 upload and certain file types
- Wp_query: sort by PHP variable
- WP_Query most viewed posts, in multiple Post Types, last 30 days, excluding a specific taxonomy term
- Add Standard Page Attributes Metabox for Page Parent
- Custom-Posttype & Custom Taxonomy WP_Query
- dynamically add a custom field or metabox to custom post type [duplicate]
- Crafting WP_Query array, sort by date
- Custom loop with multiple taxonomy queries
- Return one unique custom post type result when it shares a custom taxonomy in WP_QUERY?
- Make metabox of custom post type fully autosave- and bulk-/quick-edit compatible
- Converting the_content string to an array?
- Custom Post Type uses Custom Tags in add_filter?
- forming WP_Query for posts of all post types but from specific categories
- Post Quote with image on header for news site
- Get latest 3 posts from multiple CPT in one query
- Custom date changer post_date => future – missed schedule error
- Loop to fetch 3 post_thumbnail instances from 3 most recent custom post types named “portfolio”
- How to Create an Image Upload Box for Custom Posts?
- How to store multiple values in 1 meta_key with radio input?
- What is the best way to correlate one-to-many content-type relationships?
- Is it possible to create relational metabox values in a custom post?
- Changing custom type name hides the posts
- Isotope Filtering with Bootstrap Tabs – Custom Post Type Query Loop in each Tab (Have to click twice to filter)
- Custom post ui plugin & WP_Query – Polylang
- CPT EVENT – listing by month and filtering by category and month – form select option
- How can I get the number of custom post type posts that have a specific attachment image set?
- How to use load more custom post type data normal or according to on click category tab In WP
- Visual editor issue by having multiple tiny mce editors in a CPT
- orderby rand is not working for a custom post types
- Problem querying Custom post type by custom fields
- Found 2 elements with non-unique id (#_ajax_nonce) and (#_wpnonce)
- Orderby CPT custom fields not working
- Custom taxonomy rewrite give pagination 404
- WP_Query order by custom field, then randomly order some of results
- A better way to add a meta box to custom post types
- Why are taxonomy terms not saving when using custom meta boxes with radio button taxonomy selectors?
- WP_Query inside foreach loop returning same value for all options when filtered using ajax
- Mixing 2 custom post types with posts output in specific pattern
- Custom post taxonomies as tax_query terms?
- Plugin – Combine Meta Box Input Fields into single saveble record
- Getting Custom Post Type Meta on Publish
- creat filter with wp_query
- Troubles with acf/save_post and WP_Query
- A method for ordering mixed dates in search result loop (theory only, no actual code)
- Query custom post type with ACF Date
- How to do WP_Query with two meta fields with orderby clause
- Stuck in Order by more then one
- Display featured image from one CPT within another CPT query
- Custom WP Query on custom meta and sort by multiple meta keys value
- Show only one post on custom post type archive
- Woocommerce search pagination not working
- Meta Query Filtering not working on Custom Meta Box using Radio Buttons
- How to order WP_Query by parent for hierarchical Custom Post Type?
- Including metaboxes from custom post types in global search — continued
- WordPress loop: Show only a Custom Post Type Taxononmy TERM
- How can I made custom taxonomies relationship?
- Query Multiple Custom Posts by Custom Fields
- What’s the WP way to load remaining custom posts?
- How to Upload CSV Data into Custom Post Type Data with Metabox programmatically
- Why is this query not working? (Standard posts + custom post type)
- How do you paginate a query grouped by month?
- Grouping metadatas into one
- Custom taxonomies relationship
- Get Posts by multiple custom fields is not working
- Anon function and add_meta_box
- Custom post type ‘articles’ ignores posts_per_page, reserved post_type?
- Several post types on WP Query by tag and taxonomy
- WP Query with categories only shows one post and ignores the category
- Metabox not show in categories custom post type cmb2
- Polylang non-default language ignores tags in WP_Query