I'm trying to get the posts of a particular category to list on a page. There is also static content, below where I am trying to get the posts to list - not sure if that makes a difference.
I have tried both:
- " title="<?php the_title(); ?>"><?php the_title(); ?>
// The Query
query_posts( array ( 'category_name' => 'events', 'posts_per_page' => 10 ) );
// The Loop
while ( have_posts() ) : the_post(); ?>
// Reset Query
<?php query_posts('cat=16&showposts=5'); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php the_excerpt() ?>
<?php endwhile; endif; ?>
neither seems to work at all. The first one displays a code fragment on the page. What am I doing wrong here?
Any help would be greatly appreciated.