• 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

    (@andy14)

    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.