Forum

Thread tagged as: Question, Addons, Blog

function blog

Hi, I need to list the last 6 post but separate to 3 and 3 below. My current function is:

<?php $opts = array(
    'sort'=>'postDateTime',
    'sort-order'=>'DESC',
    'count'=>'6',
    'category'=>array('news'),  
    'template'=>'blog/home_news.html'
);
perch_blog_custom($opts); ?>

Thanks.

alex s

alex s 0 points

  • 7 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

perch_blog_custom(array(
    'sort'=>'postDateTime',
    'sort-order'=>'DESC',
    'count'=> 3,
    'category'=>array('news'),  
    'template'=>'home_news.html'
));

Then:

perch_blog_custom(array(
    'sort'=>'postDateTime',
    'sort-order'=>'DESC',
    'count'=> 3,
    'start' => 4, 
    'category'=>array('news'),  
    'template'=>'home_news.html'
));
alex s

alex s 0 points

Incredible support!!! Thanks (again)