We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum
Changes to blog/categories
Iâ€™ve just updated a site to use the new categories and blog version, but Iâ€™m having a slight issue. Iâ€™m adding classes to each blog post in the list and colouring them depending on the category. I previously got the category in post_in_list.html using:
<perch:blog id="categories" encode="false" />
But that doesnâ€™t seem to work anymore, it previously returned the slug (as far as I can remember) but now it returns a number (which I assume is the id of the category).
Iâ€™ve tried various alternatives, but none work.
What do I need to change it to to work with the latest version?
Want to reply to this thread?Login with Perch