• Resolved mspr1nt

    (@mspr1nt)


    Hello…. running AMP in Standard Mode seems to confuse the plugins that can do the job of adding images to the RSS feed – and doesn’t seem to work with the standard PHP codesnippet either. I’ve tried the Newspack RSS enhancement Plugin too, but it doesn’t really work without messing something else up.

    My question is…. when running in Standard Mode, is there specific snippet that can be added to include images in the RSS feed so that it can work correctly in the Google Publisher Centre?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Milind More

    (@milindmore22)

    Hello @mspr1nt

    AMP plugin does not modify the RSS feed of your site however, you may find this guide useful, the guide also mentions this article which adds images in RSS feed.

    Thread Starter mspr1nt

    (@mspr1nt)

    I know it doesn’t modify the rss, but where the RSS pulls its data from seems to be getting lost somewhere…. in that it doesn’t seem to look for amp-img (when a site is running in Standard Mode).

    Or is that not a thing?

    Plugin Support Milind More

    (@milindmore22)

    Hello @mspr1nt

    AMP plugin only modifies content which displays on the site (the serving html), and not the one served from various services like wp-json or RSS

    As RSS content is non-AMP content it will served normally ( as normal WordPress site content) so “it” should not look for <amp-img> tag instead “it” should look for <img> tag, assuming this is your site and this is your feed URL, I am able to get images as below

    eg image:

    
    <figure class="wp-block-image size-large"><img loading="lazy" width="1920" height="1329" src="https://extratime.media/wp-content/uploads/2021/01/arsenal-vs-crystal-palace-EPL-predictionEPL-prediction.png" alt="Arsenal Vs Crystal Palace Epl Predictionepl Prediction" class="wp-image-31465" srcset="https://extratime.media/wp-content/uploads/2021/01/arsenal-vs-crystal-palace-EPL-predictionEPL-prediction.png 1920w, https://extratime.media/wp-content/uploads/2021/01/arsenal-vs-crystal-palace-EPL-predictionEPL-prediction-1536x1063.png 1536w, https://extratime.media/wp-content/uploads/2021/01/arsenal-vs-crystal-palace-EPL-predictionEPL-prediction-1200x831.png 1200w" sizes="(max-width: 1920px) 100vw, 1920px" /></figure>
    

    Also, your RSS feed seems to be valid you can verify it here ( if it times out paste output of feed URL in input )

    Also, do check this for RSS standards.

    I will recommend asking further questions regarding RSS in WordPress Miscellaneous Support Forum.

    Thread Starter mspr1nt

    (@mspr1nt)

    Turns out it was me being an idiot…. suspect it was a rogue <P> that was the culrpit. … in case that’s ever useful to anyone else.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Images in RSS feed’ is closed to new replies.