Forum

Thread tagged as: Question, Problem

Blog post counts after blog add-on update to 4.5.2

I'm updating a site to blog 4.5.2 from blog 4.1. Currently on local dev server. However, the blog post counts aren't displayed in my archive.php page where I'm using

<?php perch_blog_categories(); ?>

I've updated my templates so that

<perch:blog id="qty" />

is now:

<perch:blog id="count.blog.post" />

but the blog post counts are not displayed. Is there anything else I should have done here??

Clive Walker

Clive Walker 22 points

  • 7 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

What does <perch:showall/> give you?

Oooh, that's a useful tag :-)

It gives me a value for each count.blog.post id.

Drew McLellan

Drew McLellan 2638 points
Perch Support

So you can see the count you need?

Yes, the value is there.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Are you using a perch:blog tag within a perch:categories region?

Does it work if you change it to perch:category ?

OK, it's not perch:blog in a perch:categories region but have changed to <perch:category id="count.blog.post" /> and that is working.

Thanks