• I’m having a problem with my categories widget.

    I can add the widget, and everything shows up nicely in the sidebar, but when I click on one of the categories it takes me to a page saying “currently viewing”… and then a bunch of category names… and that’s it.

    How can I change it so it displays all the posts in that category?

    I assume I have to edit category.php?

    What must I add in the loop so it displays all posts in that category?

    I assume something like this:

    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>

    <div id=”postcontent”>
    <?php the_content(”); ?>
    </div>
    <?php endwhile; else: ?>
    <?php endif; ?>

    Then I would change the “while” section to something to do with the categories?

    Thanks for any help :).

Viewing 2 replies - 1 through 2 (of 2 total)
  • Have you checked which one of your template files is displaying the messsage “currently viewing” ??? Do you have your permalinks set correctly and a working .htaccess file ?

    Guillermo Scharffenorth

    Thread Starter moessap

    (@moessap)

    I seem to have figured it out actually. I accidentally edited the category.php file, but found an older version with the right code in it.

    Thanks for the help though.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Problem With Categories’ is closed to new replies.