How to have a page that lists all posts in one Category?
-
My blog covers many topics, and I’d like to pull together on one page all the posts in a given category. So, for instance, in a blog of My Life, I’d like to have a page that contains all posts categorized as At the Beach. Ideally, it would list just the titles as links to the posts themselves.
I’m not a programmer (at all) so I only have the vaguest idea how to do this. The information in “Template Tags / wp_list_categories” looks like it’s close to what I need, but I don’t quite get it.
I understand that I could set At the Beach as 1, and say
<?php wp_list_categories('orderby=name&include=1'); ?>
But where do I put that code so that the page displays the relevant posts, and so that other parts of the blog treat that as a page? If I just use that in a link on the main page, it’s not going to be seen as a proper blog page, if you see what I mean.And then, what would the code look like for the page to list titles, not the whole post for each entry?
I very at sea and hope somebody can help! I think this might be useful for lots of people.
- The topic ‘How to have a page that lists all posts in one Category?’ is closed to new replies.