[resolved] Problem displaying "Category" and "Date" on every post


#1

Hi,

I’m trying to display “category” and “date” for every post I make. I’m using the following code, but it will not work? What am I doing wrong.

<a href="{{ category.url }}"> {{ category.name }} </a> {{ category.name }}


#2

Each episode can have many categories, so you need something like this

{% for category in episode.categories() %}
  <a href="{{ category.url }}">{{ category.name }}</a>
{% endfor %}

#3

Thank you. That did it.