Forum

Thread tagged as: Question, Blog

Blog custom: post type

Hi, does anyone know if I can display posts in blog custom with a kind of post type?

<?php  
perch_blog_custom(array(
                'template' => 'post_in_list.html',
                'sort' => 'postDateTime',
                'sort-order' => 'DESC',
                'post-type' => 'post-es.html'
                                        ));
?>

Thanks!

Raul Serrano

Raul Serrano 0 points

  • 7 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

The post type is the template you're using. So use the template option for that.

If you need to mix types in a list, test for postTemplate within the template and branch.