I'd like to show headlines from different categories in the sidebars of different pages.
This is working like a champ -- I start with
$newsposts = get_posts('category='.$category.'showposts='.$number_to_post);
foreach ($newsposts as $post ) {
the_permalink(), the_title() and the_excerpt() all work as expected.
However, on one page I'd like to insert the entire contents of a related post in the sidebar, not just the excerpt. But when I use the_content() in place of the_excerpt, what I get is the content of the containing page, not the content of the post.
What am I missing?