RSS Feed no paragraphs in content
-
Okay, my problem is the RSS feed (https://akramsideas.com/feed/) for my site displays the post as one big paragraph, with no line breaks.
I’ve searched the forums and the internet, and have found no solution for why this is happening.
Originally, the feed seemed to be okay, as I would view it on my iPad from the bloglovin.com app. But the only change I’ve made since then is to add the function to enable thumbnails to my feeds.
This is the function I added to the functions.php
/* THUMBNAIL IN RSS FEED */ function rss_post_thumbnail($content) { global $post; if(has_post_thumbnail($post->ID)) { $content = '<p>' . get_the_post_thumbnail($post->ID) . '</p>' . get_the_content(); } return $content; } add_filter('the_excerpt_rss', 'rss_post_thumbnail'); add_filter('the_content_feed', 'rss_post_thumbnail');
I did find some information about the
![CDATA[ ]
needing to be in your rss. When I view my rss https://akramsideas.com/feed/ the CDATA seems to be there, and the feed validates. Also, if the CDATA was the problem, what file would I edit to fix this, obviously not the functions.php, right?I also read that the paragraphs only work if your blog is set to display full text for feeds, which since I reinstalled WordPress on my server back in May, this option has always been set to full text.
Lastly, I notice that on my feed https://akramsideas.com/feed/ there seems to a paragraph tag that surround both the thumbnail and entire content. Should this be there?
Once again, my main issue is that my feed displays the entire post as a single paragraph, with no line breaks. What should I do to fix this.
Thank you all in advance for any help on this matter.
- The topic ‘RSS Feed no paragraphs in content’ is closed to new replies.