Instead of event date and event time, make the meta keys start time and end time and save them both as timestamps, then events will order correctly when sorted by start time key only.
Related Posts:
- what is the correct way to compare dates in a WP query_posts meta_query
- Using meta_query, how can i filter by a custom field and order by another one?
- Return all custom meta data for one custom post type
- How to filter custom posts by tags and custom fields?
- Sorting a query by custom field date
- Display Custom Post Type Fields
- How to hook get_terms() to only show count of posts that have custom meta
- order by meta_value serialized array
- Formatting custom meta box date from YYYY/MM/DD to a more readable alternative
- Display custom post types with custom date field value (before today) & order by custom date field
- How to insert content from another Custom Post type into Post?
- Trash / Draft a WordPress custom post after custom date field expires
- Custom fields (wp_post_meta) vs Custom Table for large amount of data
- Homepage’s content is dependent on the custom field values (set automatically), how do I get homepage to update without manually updating page?
- Displaying custom field according to date
- Best way to create a search for custom post type by custom field values
- Display Posts Query with IF function
- WP query_posts group by meta field related
- How can I fetch all the dates from custom fields from various different custom post types and show / list them at one place in ascending order?
- Query Distinct Taxonomies of Custom Post Type
- How to grab data (titles, thumbnails and custom fields) from multiple posts to populate a new array efficiently?
- Display ACF object field data using Elementor Custom Query
- Help Creating a Slideshow Custom Post Type with Custom Meta Boxes?
- Search multiple custom fields by using meta_query
- Custom Post Type – Taxonomy Dropdown Menu?
- How do I implement custom fields without using any plugins?
- Loading Custom Post Type Events into jQuery-based FullCalendar?
- How I check if the same post slug has not been used before publishing?
- How to sort a table of custom posts by column containing custom field
- Issue with saving custom post type when editor is removed
- convert Custom Fields Option-Values to Tags/Taxonomy
- Multiple templates for custom post type
- How to make an archive page displaying posts in a date range
- Automatically Insert Custom Field on Custom Post Type Publish
- How to dynamically build a multiple taxonomy query loop within a post type’s single loop?
- How to have the right design for a custom post type without accessing themes
- Create a post in custom post type using field in registration form after users submit form
- WordPress custom meta field for custom post not storing data
- Conditional regex in add_rewrite_rule() for specific query filters & pagination
- How to Duplicate (multiple meta box)?
- List all images from a single post meta value
- WP_Query: include custom post type only with specific meta value
- Is there a way to get a file URL from the relationship ACF field?
- Meta Key Value in current-user-only loop
- How can I dynamically add a post to a custom post type which uses a custom field?
- How to use custom taxonomies to reference complex relationships?
- How to implement a Google map store locator
- Random image from tag/custom type on sidebar
- Conditional Query of Custom Post Type and custom taxonomy
- Set a maxlength for the title input in a custom post type
- Update Post Meta for a logged in user
- Problem querying Custom post type by custom fields
- Using custom field content as expression in IF statement [closed]
- ACF From & To Date Validations
- Query Multiple Custom Posts by Custom Fields
- How to edit this code to get the categories in achieve page?
- Custom REST endpoints for a custom post type with custom fields
- Meta Query posts not showing on ending date of custom field
- Cross reference custom post types
- frontend image post uploader
- Show fields based on taxonomy selection in editor
- Permalinks: custom structure for taxonomy – tags?
- How to Get the title of a custom field?
- Loop for custom post types filtered by a taxonomy
- How to customize work area / admin area in a custom post type without plugins?
- ACF in wordpress
- delete_post_meta() for whole CPT / multiple posts?
- Querying multiple values from a single key
- How to inherit field value from parent post into in child / sub post
- hide specific div on single.php [closed]
- How to get_term_meta on single custom post?
- How do you output an unknown number of images in a custom post type with desired markup?
- Can’t change posts per page in WordPress Post Type Query
- Custom Fields not showing up for custom post type
- Custom post type in Custom widget – $listItem
- Generating and downloading files with WP API
- How can I see a list of products that I have set to outofstock through a custom field check box?
- Redirect to URL if x number of days passed
- Writing a custom Glossary plugin
- Filter search posts by post meta?
- Adding a location field to buddypress activity
- Sort custom post column by generated value?
- How to only display all posts to a custom User Role?
- Unable to gather Image URL from Custom Post Type’s; Custom Meta Field
- register_rest_field update_callback don’t work for $_FILES
- How to convert Post Object Custom Field into Tags
- Custom meta fields not showing up in WP_Response Object via custom endpoint
- Query a Custom Post Type using SELECT that has ACF fields to compare dates
- Filter custom WP_Query by first letter of a custom field – hopefully using Search and Filter Pro?
- check_admin_referer not working in custom meta box for custom post type
- How to display all custom fields associated with a post type – IN THE ADMIN AREA?
- Setting a custom $query->query_vars[‘meta_key’] breaks the WordPress menu
- WP_Query and two custom fields returns no posts
- Ordering custom post type by custom field without a title
- I want to split this into two functions
- Repeatable Custom Field for Media Upload
- How to apply order on custom taxonomy and custom meta key on custom post type
- How to store datetime from custom meta box so that it can be sorted by
- Adding a custom field after post title (ex.Example Title [30 Second Read])
- WP Query + custom fields: How to query event posts from the current date backwards 6 months and organize it month by month?