Forum

Thread tagged as: Blog

Blog: Unable to output category

I have created a new category in the "Blog" category set:

screenshot

I am able to select this category when creating the blog post:

screenshot

However, in the front-end I can not output any information regarding this category:

    in
    <perch:category id="catTitle" type="text" />
    <perch:categories id="categories" set="blog" label="Categories" display-as="checkboxes">

The output is always empty. I have also tried other attributes such as "catSlug", but that also doesn't work.

Any idea why this might not be working? Thanks!

Louis Bataillard

Louis Bataillard 0 points

  • 7 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

    in
<perch:categories id="categories" set="blog" label="Categories" display-as="checkboxes">
    <perch:category id="catTitle" type="text" />
</perch:categories>

Ah, yes, that fixed it. I must've removed that bottom line when copying over the default template. Thanks!