# \[podlove-web-player\] shortcode not display on homepage

**URL:** <https://community.podlove.org/t/podlove-web-player-shortcode-not-display-on-homepage/86>\
**Category:** Podlove Publisher\
**Created:** [April 9, 2015, 3:13pm UTC](https://community.podlove.org/t/podlove-web-player-shortcode-not-display-on-homepage/86 "2015-04-09T15:13:40Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![websmyth](https://community.podlove.org/letter_avatar_proxy/v4/letter/w/f1d935/32.png) [@websmyth](https://community.podlove.org/u/websmyth)\
**Post date:** [April 9, 2015, 3:13pm UTC](https://community.podlove.org/t/podlove-web-player-shortcode-not-display-on-homepage/86/1 "2015-04-09T15:13:40Z")

</div>

Apologies if I’m missing something obvious - I’ve installed the Podlove Publisher plugin but I can’t get the [podlove-web-player] shortcode to display on the home page. It works for the Episodes pages, but I can’t replicate it on the home page - is that typical behaviour? If so, is it possible to get the Web Player to display on other pages?

The site is at [www.mindofyourown.co.uk](http://www.mindofyourown.co.uk)

Dave

---

<div class="post-metadata">

**Author:** ![timpritlove](https://community.podlove.org/user_avatar/community.podlove.org/timpritlove/32/1930_2.png) [@timpritlove](https://community.podlove.org/u/timpritlove)\
**Post date:** [April 10, 2015, 10:10pm UTC](https://community.podlove.org/t/podlove-web-player-shortcode-not-display-on-homepage/86/2 "2015-04-10T22:10:16Z")

</div>

What do you mean by “home page”? By default, the home page is automatically constructed out of most recent posts. In your case I think you are talking about a separate WordPress page, right?

Problem is, the [podlove-web-player] shortcode needs the context of which episode to show. Right now, it is not possible to display the player for a specific (or the most recent) episode using that shortcode.

You can however create a Podlove Template that’s brings up the player for the latest episode and insert it into the page using the [podlove-template] shortcode. If you like I can give you an example.

---

<div class="post-metadata">

**Author:** ![timpritlove](https://community.podlove.org/user_avatar/community.podlove.org/timpritlove/32/1930_2.png) [@timpritlove](https://community.podlove.org/u/timpritlove)\
**Post date:** [April 10, 2015, 10:54pm UTC](https://community.podlove.org/t/podlove-web-player-shortcode-not-display-on-homepage/86/3 "2015-04-10T22:54:27Z")

</div>

Here is the code that does what you need:

```auto
{% for episode in podcast.episodes({ orderby: "publicationDate", order: "DESC", limit: 1 }) %}
    {{ episode.player }}
{% endfor %}

```

Create a new template in Podlove -\> Templates and call it “latest-episode”. Then you can insert it at any page with

```auto
[podlove-template id="latest-episode"]

```

And you’re done.

Read more about templates in our documentation: [http://docs.podlove.org/reference/template-tags/](http://docs.podlove.org/reference/template-tags/)

---

<div class="post-metadata">

**Author:** ![websmyth](https://community.podlove.org/letter_avatar_proxy/v4/letter/w/f1d935/32.png) [@websmyth](https://community.podlove.org/u/websmyth)\
**Post date:** [April 11, 2015, 9:13am UTC](https://community.podlove.org/t/podlove-web-player-shortcode-not-display-on-homepage/86/4 "2015-04-11T09:13:21Z")

</div>

Thanks very much for such a detailed reply - all of your assumptions are correct! I’ll have a play around with the templates and see if I can get that working as I need.

Thanks again,

Dave

---

<div class="post-metadata">

**Author:** ![websmyth](https://community.podlove.org/letter_avatar_proxy/v4/letter/w/f1d935/32.png) [@websmyth](https://community.podlove.org/u/websmyth)\
**Post date:** [April 11, 2015, 9:31am UTC](https://community.podlove.org/t/podlove-web-player-shortcode-not-display-on-homepage/86/5 "2015-04-11T09:31:48Z")

</div>

Sorry, one more thing - the template code works (thanks!), but is it possible to display a list of recent episodes within the player (e.g. image below instead of a tabled list) via the template editor?

![](https://community.podlove.org/uploads/podlove/62/f5706fde1abaf591.png)

---

<div class="post-metadata">

**Author:** ![timpritlove](https://community.podlove.org/user_avatar/community.podlove.org/timpritlove/32/1930_2.png) [@timpritlove](https://community.podlove.org/u/timpritlove)\
**Post date:** [April 11, 2015, 11:13am UTC](https://community.podlove.org/t/podlove-web-player-shortcode-not-display-on-homepage/86/6 "2015-04-11T11:13:12Z")

</div>

Unfortunately the player only supports one episode at a time. it is not designed to show a list of episodes.

It’s something that comes up every now and then but we haven’t a solution for that yet.

---

<div class="post-metadata">

**Author:** ![websmyth](https://community.podlove.org/letter_avatar_proxy/v4/letter/w/f1d935/32.png) [@websmyth](https://community.podlove.org/u/websmyth)\
**Post date:** [April 15, 2015, 8:00am UTC](https://community.podlove.org/t/podlove-web-player-shortcode-not-display-on-homepage/86/7 "2015-04-15T08:00:15Z")

</div>

Ah, that’s a shame! Thanks for all your help.
