Achim
January 29, 2017, 2:06pm
1
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?
Achim
January 29, 2017, 2:29pm
2
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
Morris
August 17, 2018, 12:57pm
4
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.