Forum

Thread tagged as: Problem, Addons

Custon posts

I have created a custom blog feed, which I want to display the latest TWO posts on another page.

My code looks like this:

<?php perch_blog_custom(array(
                'count' => '2',
            'template' => 'home-post-feed.html',
            'sort_order' => 'DESC',
            'sort_by' => 'postDateTime',
)); ?>

However its showing the earliest published posts first.

How would I achieve this?

Thanks

Michael

Michael Kashioulis

Michael Kashioulis 0 points

  • 7 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

perch_blog_custom(array(
    'count' => '2',
    'template' => 'home-post-feed.html',
    'sort-order' => 'DESC',
    'sort' => 'postDateTime',
));

Thanks Drew that did it!