Formatting RSS feed for “show notes”
-
I’ve figured out some of the issues for getting the best looking episode “show notes” that I can. I wanted to share what I learned and ask for your advice or links to any resources you recommend.
I was getting many
<br/>
tags inserted which resulted in my content having many extra lines when viewed from podcast players. The PowerPress RSS feed was converting blank lines to<br/>
tags.I figured out where the blank lines were coming from. I’m using a custom post type for my podcast episode entries. I had enabled the Gutenberg “blocks” editor. Enabled by the
'show_in_rest' => true
arg in theregister_post_type
function. When viewed as text/code, this showed it was adding “blocks” helper comments. These comments don’t appear in the raw HTML of a rendered page. However they end up leaving blank lines in the HTML.PowerPress was interpreting the blank lines as
<br/>
tags. In my view, this is an undesired behavior. If I want it to be HTML, then any space between non-HTML tags could be collapsed or removed.I disabled the blocks editor and found it works better using the older “raw” HTML “text” version. However, even adding explicit
<p>
tags with content, the<p>
tags are stripped out of the RSS feed and replaced with<br/>
tags. This ends up making it more difficult to get a desired combined webpage and RSS feed format.Also, I noticed that WP aggressively removes
<p>
tags if I switch to the editor’s “visual” tab. So I have to avoid doing that.Are there other recommendations you make for improving the display of episode posts and their rendered show notes in players?
The page I need help with: [log in to see the link]
- The topic ‘Formatting RSS feed for “show notes”’ is closed to new replies.