• Hey everyone,

    I wanted to revive this simple script by Beel, which will show only posts from the most recent month on the main page.

    <?php if (date(m) == the_time(m,0)) { ?>
    and at the end
    <?php } ?>

    Now, it works fine…with one exception. The page displays nothing when visiting a monthly archive (m=200501, for example). Is there a way to make this code “active” only if $m is not set? This would then display monthly archives, as well as displaying only the latest months postings on the main page.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘This months posts as startpage – revived!’ is closed to new replies.