Forums

A Page that shows posts from a category? (2 posts)

  1. bigsquidrc
    Member
    Posted 1 year ago #

    Hey All,

    I want to make a new page that has some info on a certain category, but then, for the remainder of the page, I want to show all the posts of that category in full. (So it looks like my front page, just with some info at the top that never changes).

    Thanks in advance!

  2. iridiax
    Member
    Posted 1 year ago #

    Don't use a page for this, just use the category archive with a category description (Dashboard -> Manage -> Categories). Make sure that your category template shows a category description.

    http://codex.wordpress.org/Category_Templates
    http://codex.wordpress.org/Template_Tags/category_description

    For showing all posts, use a plugin or query_posts in a category template.

    http://codex.wordpress.org/Template_Tags/query_posts

    I list all of my post titles in my category archives using this:

    <ul>
    <?php $posts = query_posts($query_string . '&orderby=title&order=asc&posts_per_page=-1'); while (have_posts()) : the_post(); ?>
    <li><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></li>
    <?php endwhile; ?>
    </ul>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags