We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum


Thread tagged as: Question, Problem, Blog

Showing two post lists on same page to display different links


I'm trying to display a list of recent posts on a intranet home page with the most recent article featured on its own, then followed by a short text list of links to other posts. Ideally, I don't want to feature the most recent article in the second list. Is this possible?

Here's the code I've used:

  1. For single post listing:

<?php $opts = array( 'template'=>'blog/hp_single_post_in_list.html', 'filter'=>'postDateTime', 'sort'=>'postDateTime', 'sort-order'=>'DESC', 'count'=>'1' );

perch_blog_custom($opts); ?>

  1. For list of 5 further posts:

<?php $opts = array( 'template'=>'blog/hp_post_in_list.html', 'filter'=>'postDateTime', 'sort'=>'postDateTime', 'sort-order'=>'DESC', 'count'=>'5' );

perch_blog_custom($opts); ?>

Many thanks for any advice on this.

Nigel Seymour

Nigel Seymour 0 points

  • 5 years ago

Just answered my own question! I should have looked closer:


Drew McLellan

Drew McLellan 2638 points
Perch Support