Forum

Thread tagged as: Question

Blog Categories vs Sections

Hi,

I'm in the process of setting my blog up. I'm trying to figure out if I should use categories or sections. I've read through the documentation, but I'm confused as to what the difference is between them.

I setup two sections in the blog app-- can I filter and display posts according to what section they are in?

I also setup two categories, but when I make a post, I can't select a category for the post to go into.

Thank you for your help.

Trevor Brandt

Trevor Brandt 0 points

  • 6 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Use sections for different sets of posts that are always separate and never together. For example, blog and news.

Use categories for categorising posts within a section.

Okay, thank you for your help. How would I display a list of blog postings by section?

I tried using

<?php perch_blog_sections(array('section' => 'news')); ?>

but with no success. I want to display five recent posts from my news section.

Drew McLellan

Drew McLellan 2638 points
Perch Support

perch_blog_sections() lists sections.

Use:

perch_blog_custom(array(
    'section' => 'news'
));