Page displaying posts from category
-
hey guys
Can anyone shed some light on how to create a PAGE and have it display each full POST from a category?
I’ve tried but am having no luck
THanks!
Adam
<?php /* Template Name: Sleight */ ?> <?php get_header(); ?> <div id=\"content\" class=\"narrowcolumn\"> <h2><?php single_cat_title('', 'display'); ?></h2> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class=\"post\" id=\"post-<?php the_ID(); ?>\"> <h2><a href=\"<?php the_permalink() ?>\" rel=\"bookmark\" title=\"Permanent Link to <?php the_title(); ?>\"><?php the_title(); ?></a></h2> <div class=\"entry\"> <?php the_content('<p class=\"serif\">Read the rest of this page »</p>'); ?> <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?> </div> </div> <?php endwhile; endif; ?> <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?> </div> <?php get_sidebar(); ?> <?php get_footer(); ?>
The topic ‘Page displaying posts from category’ is closed to new replies.