Title: Divider after certain date
Last modified: August 19, 2016

---

# Divider after certain date

 *  [andy14](https://wordpress.org/support/users/andy14/)
 * (@andy14)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/divider-after-certain-date/)
 * How would one go about adding a divider or a piece of content after posts from
   today?
 * I know how to make a piece of text appear after x amount of posts, but how would
   I go about making it appear after the posts from the latest day – which could
   be a single post, or could be 10 posts.

Viewing 1 replies (of 1 total)

 *  Thread Starter [andy14](https://wordpress.org/support/users/andy14/)
 * (@andy14)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/divider-after-certain-date/#post-744015)
 * Just an update. I thought I’d post my working code. I’m no coder – but this was
   my idea (based on including content after x amount of posts).
 * At the top of index.php
    `<?php $count == the_time('F j'); ?>`
 * Then after the post:
 *     ```
       <?php if ($count != the_time('F j')) : ?>
       That concludes the posts for today! Rest of the posts are below:
       <?php endif; $count++; ?>
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Divider after certain date’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [andy14](https://wordpress.org/support/users/andy14/)
 * Last activity: [18 years, 2 months ago](https://wordpress.org/support/topic/divider-after-certain-date/#post-744015)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
