# \[Help\] Podlove Template widget

**URL:** <https://community.podlove.org/t/help-podlove-template-widget/851>\
**Category:** Podlove Publisher\
**Created:** [February 18, 2017, 10:11pm UTC](https://community.podlove.org/t/help-podlove-template-widget/851 "2017-02-18T22:11:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![palanolho](https://community.podlove.org/letter_avatar_proxy/v4/letter/p/ecb155/32.png) [@palanolho](https://community.podlove.org/u/palanolho)\
**Post date:** [February 18, 2017, 10:11pm UTC](https://community.podlove.org/t/help-podlove-template-widget/851/1 "2017-02-18T22:11:59Z")

</div>

Hi, I would like to have a widget on the Header my website, what will show the webplayer with the latest episode that was published.

Unless there’s an easier way (and I haven’t found it) I tried to use the Podlove Template widget which rendered the webplayer and for my surprise, the latest episode.

after some playing around, I just realised that the widget is actually displaying the most relevant episode on the current page (or something like that), since it shows the last episode when I’m on my home page (which shows the latest posts) but when I’m on a given episode page, it shows that episode instead. In addition, if I’m on the homepage (as before) and the last post is not an episode, the widget/template is not displayed.

Is there any way to make this or so some way to show the latest in a widget?

Many thanks in advance,

- Miguel

---

<div class="post-metadata">

**Author:** ![ericteubert](https://community.podlove.org/user_avatar/community.podlove.org/ericteubert/32/1568_2.png) [@ericteubert](https://community.podlove.org/u/ericteubert)\
**Post date:** [February 21, 2017, 5:55am UTC](https://community.podlove.org/t/help-podlove-template-widget/851/2 "2017-02-21T05:55:28Z")

</div>

Can you post the template you have so far?

---

<div class="post-metadata">

**Author:** ![palanolho](https://community.podlove.org/letter_avatar_proxy/v4/letter/p/ecb155/32.png) [@palanolho](https://community.podlove.org/u/palanolho)\
**Post date:** [February 21, 2017, 8:58am UTC](https://community.podlove.org/t/help-podlove-template-widget/851/3 "2017-02-21T08:58:46Z")

</div>

I figured it out !! (yey to me)

I was able to do it like this:

`{{ podcast.episodes({'orderby': 'publicationDate', 'order': 'DESC', 'limit': 1 })[0].player }}`

However, I think it would be interesting if the Podcast had some property that would get automatically last episode. Something like `podcast.episodes.last`

(This is a suggestion to make it more user friendly)

Many thanks

---

<div class="post-metadata">

**Author:** ![ericteubert](https://community.podlove.org/user_avatar/community.podlove.org/ericteubert/32/1568_2.png) [@ericteubert](https://community.podlove.org/u/ericteubert)\
**Post date:** [April 26, 2020, 2:01pm UTC](https://community.podlove.org/t/help-podlove-template-widget/851/5 "2020-04-26T14:01:21Z")

</div>

In case someone stumbles over this, here’s an up-to-date tutorial: [[Tutorial] Show Player for latest Episode](https://community.podlove.org/t/tutorial-show-player-for-latest-episode/2145)
