I have to produce a wordpress-site which shows 5 posts around the front as well as in another loop: 2 posts from the next page. These appear should you go to the second page. Have you got any ideas? I wanna show "More articles" by exhibiting "older" posts inside a different loop.


For page one, limit your listing to five posts per page in wordpress configurations.

Then you definitely produce the second page and use a page template in witch you earn a custom query to fetch 2 posts.

  $cat = get_cat_ID($category);
  $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
  $post_per_page = 2; // -1 shows all posts
  $do_not_show_stickies = 1; // 0 to show stickies
  'category__in' => array($cat),
  'orderby' => 'date',
  'order' => 'DESC',
  'paged' => $paged,
  'posts_per_page' => $post_per_page,
  'caller_get_posts' => $do_not_show_stickies
  $temp = $wp_query;  // assign orginal query to temp variable for later use   
  $wp_query = null;
  $wp_query = new WP_Query($args); 

  if( have_posts() ) : 

To see more, see Wordpress Codex Reference