[solved] MP3 Audio [27 MB]DownloadShow URL in Episode Excerpts

Many (not all) of my Episode excerpts in the blogroll begin with phrasing like this: “MP3 Audio [27 MB]DownloadShow URL”

I don’t see a CSS way to block it without blocking the entire excerpt for the episode.

How can I exclude that text from the excerpt when WordPress puts the excerpt together and the plugin is putting the mp3 player at the top of the post?

Go to Podlove -> Templates and look for the template used for your posts.

In the code you should find something like

  [podlove-episode-downloads style="select"]

Change the template so that it is enclosed in

{% if not is_feed() %}

and

{% endif %}

to exclude this part from the feed. The standard template on install now puts it like this

{% if not is_feed() %}
  {{ episode.player }}
  [podlove-episode-downloads style="select"]
{% endif %}

which excludes both the player and the download widget from the feed.

I was using the default template, which was configured slightly differently from what you described. However, once I understood that you were using WP conditionals, I was able to find the right combination.

It was:

{% if not is_feed() %}
    {# display web player for episode #}
    {{ episode.player }}
    
{% endif %}

{% if not ( is_front_page() and is_home() ) %}
    {# display download menu for episode #}
    {% include "@core/shortcode/downloads-select.twig" %}
    
{% endif %}
1 Like