Forums

Autofocus | How are archive pages generated (4 posts)

  1. shalzers
    Member
    Posted 2 years ago #

    Whaz Aup!

    Hey does anyone know how the monthly archive pages are generated in the Autofocus theme?
    Example: http://www.shalaco.com/gerund/2010/01/

    Is this something that happens in all themes or is this exlusive to Autofocus.

    I just need to be pointed in the right direction for how this page is generated so that I can mimic it here: http://www.shalaco.com/gerund/archive/

    Thanks
    ~Shålaco

  2. Steffen Jørgensen
    Member
    Posted 2 years ago #

    It can happen in all themes, but not all themes use this feature.

    http://codex.wordpress.org/Templates#Archives.2C_Categories.2C_and_Special_Pages

  3. shalzers
    Member
    Posted 2 years ago #

    Okay, so archives.php generates:
    http://www.shalaco.com/gerund/2010/

    while archive.php generates
    http://www.shalaco.com/archive

    So i have to learn enough about writing php and the loop to be able to mash the two pages together so that instead of the php pulling the year from the URL /2010/ with: <?php if ( is_day() ) : ?>

    I would use something more like:
    <?php while ( have_posts() ) : the_post() ?>

    YaY learning!

  4. bunka-design
    Member
    Posted 2 years ago #

    I really would like to create an archive page like the one you mentioned:
    http://www.shalaco.com/gerund/2010/01/

    did you ever figure out how to do it?

Topic Closed

This topic has been closed to new replies.

About this Topic