Displaying Blog items on homepage

  • I have my blog news set to show as brief clips on the footer in my homepage. But despite trying below, they are listed alphabetically by title rather than chronologically.


    How do I force them to list newest first then descending?

    <?php perch_blog_custom(array('count'=>3, 'template'=>'post_homepage.html', 'sort-order' => 'DESC', 'sort-type' => 'numeric')); ?>

  • You have to specify the id of the field you wish to sort by, for example:


    PHP
    1. <?php
    2. perch_blog_custom(array(
    3.     'count' => 3,
    4.     'template' => 'post_homepage.html',
    5.     'sort' => 'title',
    6.     'sort-order' => 'DESC',
    7.     'sort-type' => 'numeric'
    8. ));
    9. ?>