Problem With Categories
-
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 :).
- The topic ‘Problem With Categories’ is closed to new replies.