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?
- Display all posts in a custom post type, grouped by a custom taxonomy
- WP_Query() show posts that end later than today
- How to check if a WP_Query has data
- Why won’t my metabox data save?
- Sorting a query by custom field date
- echo value from ‘select’ field type into page template using cmb2?
- Add metabox with media uploader in a custom post type [duplicate]
- Retrieving 3 latest post from each of 5 different custom post types
- Best way to arrange custom post types by Attributes -> Order metabox value?
- Wp-query causing problems with the_content();
- Multiple Archive Pages for Custom Post Types AND Taxonomies
- Exclude current post when getting related post on custom post type and taxonomy
- Display Posts of a Category in Alphabetical Order (Custom Post Type)
- Ordering Custom Post Types with WP_Query
- Filter posts with meta_query NOT IN where value has multiple values
- How to query different post types in specific order?
- How can I display my custom metaboxes on a custom post template?
- Unable to show meta box data in frontend
- is_main_query() not working for WP REST API
- Taxonomy Archive: Display only one post per term from separate custom taxonomy
- Loop through Custom Post Type, and then show children within each iteration
- Adding dropdown select meta box to custom post type – seems restAPI is interfering
- How to make sure content doesn’t display if selection is empty
- Archive for custom taxonomy lists all posts instead of current taxonomy
- Wp_query: sort by PHP variable
- WP_Query most viewed posts, in multiple Post Types, last 30 days, excluding a specific taxonomy term
- Crafting WP_Query array, sort by date
- forming WP_Query for posts of all post types but from specific categories
- How can I get the number of custom post type posts that have a specific attachment image set?
- Including metaboxes from custom post types in global search — continued
- Custom Widget WP_Query problem
- Show Custom Post Type meta boxes only on Page Edit
- Adding Page Templates to post but it ignored it
- Parent Page and Breadcrumb URL’s for Custom Post Types Not Working
- Order posts by 2 custom fields and if one custom field is zero orderby another custom field
- Select event where start date is smaller than current date and end date is greater than current date
- Custom “radio button meta box” not saving correctly
- Meta Data for Custom Post Type not saving
- Remove “show sharing buttons” metabox Jetpack from custom post type
- Custon Content within WordPress Loop
- WP Query ‘posts_per_page’
- Custom Meta Box Causing Error: “Are you sure you want to do this? Please try again.”
- WP_Query order by two values
- How to Query in WordPress which shows Alphabetic Posts?
- Create query for both custom post type and category
- Meta box not appearing in my custom post type
- wp_dropdown_pages with tax_query clause
- Cache issue with WP_Query and custom field filtering
- Post Type => Any conundrum
- Custom Post Type Meta Box Text Input Field Won’t Save When Blank
- Creating an Events Feed with Sub Pages/Posts for Each Event
- custom taxonomy pagination 404 error
- wp_query can’t get max_num_pages in custom post type
- Custom Post Type meta data getting deleted on bulk editing taxonomies
- Custom Form / Search with Custom Post Type Data
- Query to show post current day
- Using ACF values in nested WP queries for CPT with date values in the past
- Show a custom post title in another custom post type in Meta box
- how to display posts content on the custom css popup by clicking on each title on the sidebar?
- Modify Publish Metabox location on CPT
- How do I insert a custom post type query after a certain number of recent posts and then resume recent posts?
- WP_Query for custom taxonomies showing posts from non-specified terms?
- how to display new private message to users?
- Make pagination work as a carousel (custom query)
- subtracting the current post form then whole loop, which is generating all CPT titles
- Custom taxonomy with custom post type archive page
- How to shows CPT which has specific meta key?
- Displaying WordPress posts from post and custom post type in custom taxonomy
- Metabox is not saving
- Loop carousel slider in wordpress
- Manually build WP_Query
- Loop with Custom Post Type and Taxonomies
- Select custom post by meta value
- 404 on Pages for Custom Post Type & Query_Posts
- Custom post type – permalink
- WP_Query arguments: Loop through custom post type – get all entries except excluded meta_key?
- How can I show posts with the same tag?
- Load posts via AJAX without draft status
- WP Query – Can’t get posts with specific taxonomy