This is my WP loop:
// fetch latest news stories
$paged = (get_query_var('page')) ? get_query_var('page') : 1;
$posts = get_posts(array(
'numberposts' => 3,
'paged' => $paged,
));
// show results
if ( have_posts() ) {
while ( have_posts() ) {
the_post();
// display info about the post
}
}
Here's the problem: only the first post is showing, and the pagination isn't showing at all.
Interestingly, I use the same code (from // show results
down, since Wordpress sets up the posts to display for search results automatically) to display the results on my search page, and it works perfectly.
I'd like to use this same display code (again, from // show results
down) on all my blog-related archive pages: date archives, main blog page, tag-based archive, etc.
I just need it to show more than one post and let my pagination show...