WordPress.org

Support

Support » How-To and Troubleshooting » Categories-page wrongly goes to Archives

Categories-page wrongly goes to Archives

  • Clicking on a category, the Archives-page shows up. What’s wrong?

    I use the Clean Archives plug-in.

    The codes are as per follows:

    <li id=”Categories”>
    <h2>Categories</h2>

      <?php wp_list_cats(‘sort_column=name’); ?>

    and

    <li id=”Archives”>
    <h2>Archives</h2>

      <?php wp_get_archives(‘type=monthly’); ?>
Viewing 3 replies - 1 through 3 (of 3 total)
  • The page is here:

    http://absolutelybangkok.com/

    When you click a Category, the page links to the Archive.

    Why?!

    My guess is you messed with the termplate files and didn’t pay attention to the fact that archive.php and archives.php (with plural S) are TWO dufferent files!
    So, you put the WRONG code into the archive.php – which is supposed to display your category and monthly archive/listing.
    The code you have posted above belongs to the archiveS.php – which is a Page template file!

    tks moshu! somehow i screwed up completely, re-installed the whole thing properly. many tks again!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Categories-page wrongly goes to Archives’ is closed to new replies.
Skip to toolbar