Comma-separated Category List of Current Post in Dynamic Text

I’m trying to create a single layout template for my blog posts. In this layout, under the post title, I’m trying to create a dynamic text string that is formatted like: ‘[author name] / [date] / [list of categories the post belongs to]’

Each category would then be a link to that category archive.

I’ve managed to get close with this dynamic content string for the text:

{{dc:author:display_name}} / {{dc:post:publish_date}} / < a href="{{dc:term:url}}">{{dc:term:title}}

The problem is that only one of the post categories is showing up. How can I format the dynamic content string so that all categories the post belongs to are shown?

I’ve worked it out. You can use either the ‘Terms’ module to get a list of categories, or use the ‘Post Meta’ module to get everything from author, to date published, etc.

Hi Boris,

Thanks for reaching out.

We’re glad that you’re able to find a solution to your problem. If you have any other concerns regarding our theme features, feel free to reach us.

Thank you.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.