WordPress.org

Ready to get started?Download WordPress

Forums

Archives List on Front Page (3 posts)

  1. belpurple
    Member
    Posted 6 years ago #

    Hi,

    How to show 'archive entries' after the recent post on the front page?
    Anyone know what is the plugin/script using in Kennysia.com?

    Looking for your help and reply,
    Thank you!

  2. MichaelH
    Member
    Posted 6 years ago #

    In your theme's index.php file you would need to determine 'what is the first (or latest post)' then display the archives with the template tag, wp_get_archives().

    So before [The Loop]] set:

    $postcount=0;

    Then inside The Loop put your code:

    <?php
    $postcount++;
    if($postcount==1){?>
    <div><?php wp_get_archives('type=daily&limit=15'); ?></div>
    <?php } ?>

    See:
    Stepping into Templates
    Stepping into Template Tags
    Editing Files
    Template Hierarchy

  3. harknell
    Member
    Posted 6 years ago #

    If you don't quite want to get all code-ish, you can add my AWSOM Archive plugin and simply put a code where you want the archive to show up. You can set what type of archive you want from the admin area. And now it can do other types of archives besides drop down ones, so you can list links and such.

Topic Closed

This topic has been closed to new replies.

About this Topic