WordPress.org

Ready to get started?Download WordPress

Forums

Non-Index Sidebar Different from Index Sidebar (5 posts)

  1. nikazu
    Member
    Posted 10 years ago #

    Hey Folks:
    I'd like to keep a different set of links on my non-index pages (e.g., archive pages) from the set of links on my index page. It appears that the default setup globalizes the links that I have on the index.php template. I assume that there must be an archive template somewhere, but I can't seem to be able to identify it. Anyone know how to do this?

  2. Mark (podz)
    Support Maven
    Posted 10 years ago #

    You'll need mod_rewrite I think.
    Try a search for that and archives.

  3. Skybly
    Member
    Posted 10 years ago #

    I don't believe there's an extra archive template, but you can just copy index.php to archive.php, for example, and change index.php so that permalinks etc. call up that copied file. Then edit archive.php as you wish :)
    I'm doing the exact same thing to have different templates for index, category and date archives.

  4. nikazu
    Member
    Posted 10 years ago #

    Thanks! Creating an archives.php file worked, but now I need to get archive specific content. The same post content that is on my index page shows up on my archive pages as well, both individual and monthly. Help?

  5. nikazu
    Member
    Posted 10 years ago #

    Nevermind. After searching around I discovered that I could do it by using the custom permalink structure and changing the 'index.php' links in the .htaccess file to 'arch.php'.
    Whew!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.