<?php
$day_check = '';
while (have_posts()) : the_post();
$day = get_the_date('j');
if ($day != $day_check) {
if ($day_check != '') {
echo '</ul>'; // close the list here
}
echo get_the_date() . '<ul>';
}
?>
<li><a href="#"><?php the_time(); ?><?php the_title(); ?></a></li>
<?php
$day_check = $day;
endwhile; ?>
do like this i hop this work
Related Posts:
- Calculate business days
- the_date() not working
- Archive listing of posts by publish year (multiple years)
- WordPress returns a wrong date
- Unable to set right time in admin and frontend template
- WP_Query meta_query results date by date
- Way to display “Yesterday”, “Today”
- display month in french in wordpress/php?
- Get date numerical and separate?
- Print last modified date only on posts
- Adding number to date not working [closed]
- Set meta field to publish date + 2 weeks
- How to manually change current date to post date in frontend?
- Convert WordPress date format to jQuery UI Datepicker format
- Converting Y-m-d to a date with a Month name? [closed]
- How would I use this filter to change the output of the date format to “Twitter time”?
- How to get User Time Zone in WordPress?
- Using php inside javascript [closed]
- Get date function not working
- Is there way to toggle the publish date display?
- If Post Published Date or Modified Date is 1 Year or Older, Display Notice on Post Page
- Issue in displaying the ongoing event and current events in the post
- WordPress wrong dates bug
- Don’t update modified post date when user add a product review or comment?
- Possible to edit custom date field and display?
- Get posts from year from URL
- Changing Date Format on Custom Meta Data w/shortcode call
- Primary navigation menu with timed items from custom post type
- Can’t add to time? [closed]
- WordPress change post date format from english to japanese
- Comparing Dates within plugin using PHP If statement
- Adding a number to a date
- Display Year and Month from custom field + Age Calculator
- Convert custom field date format to “WordPress default”
- Should I use spl_autoload_register() in my plugin?
- List of all theme customizer control types?
- Installing wp3.2.1 on IIS; getting empty sessions
- WordPress widget in custom theme
- external wordpress pages using wp-blog-header
- How do I enable HTML5 prefetching on this page?
- user_id error: Only variables should be passed by reference
- How to find the output of contact form 7 shortcode? [closed]
- Is it necessary to upgrade to php7? [closed]
- How can I output a php value into a JS file within WordPress?
- WordPress to end support for PHP 4?
- Why does WordPress remove my variables in the URL?
- get current custom post ID by WP_Query method
- Can I prevent the user from adding more than two levels deep of terms inside of a taxonomy metabox?
- Show css depending on activity type in BuddyPress activity-loop [closed]
- Mute Debug Messages from Plugins
- Reprinting tags with all attributes
- Why is image hard cropping for one image using add_image_size not working?
- database sent to a JSON file
- Settings API callback function inserts html quotes from nowhere
- can i fetch a custom metabox data in another page or post type?
- Call to undefined function get_userdata() in plugin
- Dilemma of Populating all the categories in a drop down list
- Add item to top of menu using a filter in functions.php
- How to include seperate PHP file to class in callback function
- ‘Post-thumbnails’ feature does not seem to register
- echo something inside a shortcode
- I can’t update my data through $wpdb
- Display css ONLY on most recent post of specific category?
- Calling PHP Titles inside Javascript Markup
- How to replace the default domain on wp get shortlink
- show recent posts php code error?
- Deeper editing of index.php and single.php
- add the value of a variable returned in a while loop [closed]
- Show Featured Image Dimensions and size frontend with shortcode
- How to remove/hide collapse menu for user/subscriber?
- How do I edit the terms output args or array data?
- Gutenberg Blocks and get_option() for styling
- remove values within an array user meta
- Non-blocking file_put_contents in function.php
- WP_QUERY post_in problem
- How to get post titles by post ID and integrate with my code?
- how to get data from two different table from wordpress database
- custom taxonomies not working
- Should I set a page as “No-index” if I include it’s content within the front-Page.php via this method?
- How does Permalink work with the AMP plugin after Removing Parent Permalink Catalog from Posts
- WordPress: Redirect Main Site to Subsite in Multisite Where user is NOT logged in
- Exclude category and post from loop in custom category.php
- Menu to the right of screen on desktop using Bootstrap 4
- Add div after every 4 posts then every 2 posts for a responsive loop
- Update same content in multiple posts at once?
- Different home page for logged off users
- What to create new post using wp_insert_post, but it repeat the post infinitely
- Non-static method error when trying to use class in widgets
- Send data from plugin to external database
- Get terms of the posts with one query
- Changes in header.php not reflecting
- Modify php code to pass a page id as a parameter in order to create a breadcrumb
- Newly published content gives 404 on wordpress
- Show custom default avatar instead of gravatar
- Get unique post in parent category
- Advanced Custom Fields Show PHP in Text Areas
- Custom taxonomy with page post type – WordPress
- Alternative to php echo within code
- Why does WordPress not send the user the email to add a password?
- How to put a class in the p tag automatically added by the_content() in the wordpress loop?