WordPress: How to display multiple categories for a single post

  php, taxonomy, templates, wordpress

What I am trying to do is display blog posts in a carousel with the post title and the categories each post is in. For example, let’s say the blog post is titled "How to Care for Roses" and it’s in the following post categories:

  • Flowering Shrubs
  • Ornamentals
  • DIY Gardening

I would like to dynamically load each post’s categories above the post title in each post carousel slide. I have no problem with creating a template that allows me to do this. I just can’t seem to figure out how to get the post categories to display in the template.

Any help would be appreciated 🙂

Thanks!

Source: Ask PHP

LEAVE A COMMENT