Forums

Help with archives.php file please (3 posts)

  1. Gary_Davison
    Member
    Posted 3 years ago #

    Hi,

    I am creating my own theme, I have created a archives.php file, which can be found here:

    http://garydavison.co.uk/archives/

    But when I click on the archives within my sidebar, on my homepage, the page isn't displayed:

    http://garydavison.co.uk/

    If someone could help that would be great, if you require extra info please let me know.

    Thanks

  2. MichaelH
    Volunteer
    Posted 3 years ago #

    They display okay for me. Of course, you only have one post so it is hard to 'confirm' much.

    Don't be confused by what an archive is--it is just a generated display of your posts at that moment. You don't do anything to create the archive, that's an automatic thing WordPress does for you. Usually, archives are date, category, tag, or author, based.

    Access to archives is typically presented via links in a sidebar under an Archive (date based), Category, or Tag Cloud, heading. Widgets, or Template Tags, such as wp_get_archives(), wp_list_categories(), wp_tag_cloud(), and wp_list_authors(), are the constructs used to present links to users to visit your various archives. The process of placing code in your Theme's Templates is explained in Stepping Into Templates and Stepping Into Template Tags.

    Also See
    Template Hierarchy
    Creating_an_Archive_Index

  3. Gary_Davison
    Member
    Posted 3 years ago #

    Sorry I posted the wrong links:

    This is the archive file, and how I want it displayed:

    http://garydavison.co.uk/archives/

    And this is how it is currently being displayed when the user clicks the month on the sidebar:

    http://garydavison.co.uk/2008/12/

    Sorry hope that makes my problem clearer.

    thanks

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags