WordPress.org

Ready to get started?Download WordPress

Forums

Categories-page wrongly goes to Archives (4 posts)

  1. panmoria
    Member
    Posted 6 years ago #

    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'); ?>
  2. panmoria
    Member
    Posted 6 years ago #

    The page is here:

    http://absolutelybangkok.com/

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

    Why?!

  3. moshu
    Member
    Posted 6 years ago #

    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!

  4. panmoria
    Member
    Posted 6 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic