• Hi all: I am populating a wordpress site, with posts and pages. The posts can be easily categorized, which is great. I would like to create pages that list the posts in a given category (dynamically, so that I don’t have to statically add URLs to the page!). How do I do this in wordpress? Thanks in advance.

    Example: if I have 2 posts under Category = Mountain Bike, I would like to create a page that lists the links to these 2 posts. Page content:
    ==============
    Welcome to the mountain bike section. The links below provide information about tuning tips and riding techniques.
    * URL to link 1
    * URL to link 2
    * [auto add URL to link 3 when added under the Mountain Bike Category]
    =============

Viewing 1 replies (of 1 total)
  • You can create a Page Template, then in that Page Template use the template tag, query_posts(), to display posts in that category. After you create the Page Template assign it to a Page.

    Also, don’t forget Category Templates that might be used for this purpose. You could code one category template (e.g. category.php) for your theme and display the Category Description before displaying the posts.

Viewing 1 replies (of 1 total)
  • The topic ‘Listing posts from a given Category inside a page’ is closed to new replies.