List of episodes filtered by Category / Tag

Hi Community,

I would like to have an Episode-List depending on Wordpress-Category or -Tag. (Maybe also on Publisher data, like contributor, etc.)

I guess that is not possible by simply changing the template, right?
http://docs.podlove.org/podlove-publisher/reference/templates.html#list-of-episodes

Is this something that might be helpful/interesting for others as well?

hm - I think I just found something, that might help: http://docs.podlove.org/podlove-publisher/guides/understanding-templates.html#episode-templates

So, I could write

{% for episode in podcast.episodes %}
  {% if episode.categories ... %}

But how to complete this? episode.categories is a list. I guess it is not as simple as
if episode.categories.contains("name") or something like that?

What you’re looking for is

{% for episode in podcast.episodes({category: "mycategory"}) %}

Make sure you use the category slug, not its name.

1 Like

Would somebody please write the hole string I would need to add to the episode template.
I have been trying based on the example to figure out how it should look like, but can’t get it right (problem being I have no idea what the elements in the example mean and or do)

Hey guys! I know this Thread is a bit old, but I need some help here.

What you’re looking for is

{% for episode in podcast.episodes({category: "mycategory"}) %}

Make sure you use the category slug, not its name.

This one is fine. But I need the same but with Tags.
Could u help me here?

So like: {% for episode in podcast.episodes({tag: “mytag”}) %}
but there is no tag slug or?

You’re right, there is currently no way in the API to filter by tags.