Forum

Thread tagged as: Problem, Blog

Blog Categories after upgrade

Recently upgraded an older site to latest Perch and Blog etc.

Any reason why this is no longer working? <?php perch_blog_post_categories(perch_get('s')); ?> (From: https://docs.grabaperch.com/addons/blog/page-functions/perch-blog-post-categories/)

Also, in the post_in_list.html template, what should this now be? <perch:blog id="category_names" />

Realise Categories have move from Blog to be central now. Added new code into post template and republished to get these working again. Also copied category templates to templates folder.

Have been through this before, but can't remember the rest of fixes to apply.

Thanks.

Installed apps: content (2.8.7), assets (2.8.7), categories (2.8.7), perch_blog (4.6), perch_events (1.9.2), perch_forms (1.8.3)

Stuart Farrell

Stuart Farrell 0 points

  • 6 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

<perch:blog id="category_names" />

should be

<perch:categories id="categories" set="blog">
    <perch:category id="catTitle" type="text" />
</perch:categories>

OK thanks - that's the ticket for post list...

RE:

<?php perch_blog_post_categories(perch_get('s')); ?>

I just used the below as I pull it from the URL with get.

<?php echo "$cat"; ?>

Thanks.