WordPress.org

Support

Support » How-To and Troubleshooting » Non-Index Sidebar Different from Index Sidebar

Non-Index Sidebar Different from Index Sidebar

  • 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?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Mark (podz)
    Support Maven

    @podz

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

    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.

    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?

    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!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Non-Index Sidebar Different from Index Sidebar’ is closed to new replies.