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 }}
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 }}
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 %}
Thank you. That did it.