You need something like this:
$args = array(
'post_type' => 'post'
);
$q = new WP_Query($args);
if ($q->have_posts()) {
$date="";
while ($q->have_posts()) {
$q->the_post();
$m = get_post_meta($post->ID,'field_id',true);
// var_dump($m);
if ($date != $m) {
// if $m is a strtotime compatible string
echo date('l',strtotime($m));
$date = $m;
}
echo '<br>';
the_title();
echo '<br>';
echo str_repeat('-',200);
echo '<br>';
}
}
A lot depends on the format of your “date/time info” in the custom meta field though, and you do not specify. I am also not sure if that meta_key is unique per post. I assumed it was.
Related Posts:
- Custom Post Type Archives by Date and Taxonomy
- Custom Post Type Archives by Date with Custom Permalink
- Sorting a query by custom field date
- Ordering posts having multiple post-meta date fields
- Set Custom Post Type title to the Post’s Date
- Custom Post Type Archives by Date (stored as meta value) WP3.1
- Formatting custom meta box date from YYYY/MM/DD to a more readable alternative
- Using date stored as custom field to filter posts displayed in admin
- Custom post admin filtering by post meta (the date)
- Trash / Draft a WordPress custom post after custom date field expires
- Changing wordpress publication date to ACF date and time picker date not working
- Displaying custom field according to date
- Recoverable Fatal Error – Object of class WP_Post could not be converted to string
- Sort a custom post with ACF: Date Picker & Display Featured!
- Can anyone clarify difference between archive-{posttype}.php, type-{posttype} and date.php?
- Incorrect ordering of custom post type based on time
- Redirect to URL if x number of days passed
- How to set post date in post_type so that it’s same as latest post in category
- Compare ACF Date field to today or yesterday
- 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?
- Permalinks: custom post type -> custom taxonomy -> post
- How to Add Tags to Custom Post Type?
- How come Featured Image isn’t showing up in my Custom Post Type?
- Adding ‘menu order’ column to custom post type admin screen
- Efficient Taxonomy Intersection
- How to create a wp_query that contains both meta_query and tax_query
- Display custom post type and custom fields within a Bootstrap Carousel
- Archive page…limiting posts per page
- Seperating Custom Post Search Results
- WP 3.1 – archive pages for custom content types possible now without a plugin?
- Use WP_Query object inside a function
- WP_Query search custom posts meta date fields
- How to have a custom URL structure for a custom post type?
- Custom permalinks – post type – hierarchical taxonomy’s
- How do I create new content pages for my Custom Post Type?
- Using new WP_Query in shortcode in a custom field causes the main post content to not display
- Listing and accessing categories for a custom post type
- Taxonomy list. Order by a specific custom post type count
- Rewrite CPT slug with two taxonomy slug instead of one
- Creating a simple pagination for custom post type templates
- Custom content type meta_box_cb does not run
- WP_Query tax_query on ACF post_object
- Custom Taxonomy breaking pages permalinks
- Frontend Form for Custom Post Type
- Show hierarchical relationship between to custom post types on admin list
- CPT’s archive and single page not working [closed]
- How to show custom post template from single page?
- Custom query shows custom post types in trash
- Do i need to keep register_post_type in functions.php?
- How to create new category for custom post type?
- Display multiple custom post types and sort them chronological by one of their fields
- Using DISTINCT in wp_query
- How to clone the “Projects” Custom Post type in Divi theme
- Remove url rewrites for registered taxonomies
- Received nothing after executing AJAX post function
- Metabox not show in categories custom post type cmb2
- Custom Post Types in the WordPress Navigation Menu
- Get term name without a foreach loop
- How to Set Taxonomy Object Description?
- Getting used tags per post type
- Navigate posts with different post type that are in the same categories
- the_title not working
- Show Custom Message in WordPress Admin
- WordPress notification if new post published
- Custom Post type collection
- How to Organize and Sort Gallery of Images
- Display what taxonomies a custom post has?
- How to recover the post ID earlier in the WP admin hook action “firing” sequence?
- Page that lists publications by classifying them by taxonomy
- get_query_var(‘paged’) return 0 in custom category page
- users post count
- Order admin post list table by meta field, and have posts without the meta field always be at the end of the list
- Having hierarchies inside WordPress custom post type
- Limit 1 post by user in each custom post type
- Subpages URLs for Custom Post Type
- WP_Query based on ‘s’ and tax_queries
- get_post_meta not working with variable as a post_id for dynamically get the postid
- How to structure a website with custom post types and custom taxonomies?
- Dropdown of existing posts in a metabox
- The page or ad listing you are trying to reach no longer exists or has expired
- Add more custom fields when creating a new custom post type
- Keep br tags from stripping
- Display featured images from custom post type in the homepage template
- php output of generated custom metabox
- I want fetch custom post with taxonomy id
- Can I create a taxonomy term that mirrors the name of a new custom post?
- Ads below footer
- Rewrite for custom type and custom taxonomy
- How to create TEMPLATES for TAXONOMIES? What I have to change in this code?
- Query child posts on parents single.php?
- Show custom post along with default post
- Template with Custom Post Type (Custom Tables) does not work
- Ordering custom posts
- Custom post type – update_meta not working
- Where do I insert to? [closed]
- WooCommerce – Complete Order when an action occurs
- How to debug a 404 error on pages whose content is perfectly displayed when I explore it?
- Rewrite nested urls for custom post type
- Custom Post Type featured option
- Rewrite rule taxonomy url with different values in one function