WordPress.org

Forums

Separate posts by days (3 posts)

  1. Kiddeath91
    Member
    Posted 10 years ago #

    Any WP PHP gurus, this may be for you. Trying to hack the WP source to get daily posts to be separated by some type of demarcation (probably an <hr />). I want this to happen in between days. So when I put up say five posts today, tomorrow when I post the php (or Javascript?) will automatically insert a single <hr /> tag between today's posts and yesterday's, etc. Don't know how else to describe this. Any help/code/links would be sweet.

  2. prissed
    Member
    Posted 10 years ago #

    If you want an example, you could take a look at the index.php for the WordPress Classic template.

    It separates by day.

    You would use <?php the_date(); ?> to get this working.

    http://codex.wordpress.org/Template_Tags/the_date

  3. Kiddeath91
    Member
    Posted 10 years ago #

    Prissed, THANKS!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.