Site logo

Archived topic

Some of my RSS feeds are failing

37 replies · Started by Caro on March 4, 2022

Viewing posts 1–15 of 38

Good morning team! Happy Friday!

I have had a couple of messages from Pinterest Business saying some of my connected RSS feeds are failing.

I get the message —

https://thelistedhome.co.uk/feed/

Pinterest can’t find images in your feed. Please make sure your feed has high-quality images in <enclosure>, or <media:content> tags under each <item> tag.

I have checked on an RSS Feed Validation service and it says:

This feed is valid, but interoperability with the widest range of feed readers could be improved by implementing the following recommendations.

line 46, column 0: description should not contain aria-label attribute (17 occurrences)

Please can someone help me to solve this? :)

Hi there,

Odd that aria-labels ( from the read more ) would be an issue.
If you want - you can remove the aria-labels from the feed using a PHP snippet like this:

add_filter( 'generate_content_more_link_output','db_rss_remove_readmore_aria' );
function db_rss_remove_readmore_aria($output) {
    if ( is_feed() ) {
        $output = sprintf(
            '<p class="read-more-container"><a title="%1$s" class="read-more content-read-more" href="%2$s">%3$s</a></p>',
            the_title_attribute( 'echo=0' ),
            esc_url( get_permalink( get_the_ID() ) . apply_filters( 'generate_more_jump', '#more-' . get_the_ID() ) ),
            __( 'Read more', 'generatepress' ),
        );
    }
    
    return $output;
}

In regards to images - i assume your posts are using the Featured Image ?

Thanks ever so much David! Off to implement that now :) Will let you know if it works. have a good weekend :)

You're welcome

Sorry about that - i amended the code above.

Thank you — have added it. Will let you know how I get on :)

You're welcome

Aargh — still getting the same error message.

'This feed is valid, but interoperability with the widest range of feed readers could be improved by implementing the following recommendations.

line 48, column 0: description should not contain aria-label attribute (17 occurrences)'

Is there anything else I can do?

Do you have any caching on the server ? Might be worth checking with the host, in case the feed is cached or needs a cURL event to update it.

I have a caching plugin installed — but will check with my hosts too :) Thanks David. Wishing you a great weekend.

Good morning team :) So I spoke to my hosts — everything good and in place there. But I had yet another email from Pinterest this morning.

https://www.screencast.com/t/oAkL9AMUv

I've gone back to my site and noticed that the mosts recent posts grid has been generated using the Ultimate Addons plugin. Maybe this is causing the issue? It hasn't previously but, I guess as things change and update, there may be a clash with GP.

Is there a way I can replicate this look and functionality in GP — or using GenerateBlocksPro which I also have?

https://www.screencast.com/t/oyh3tXpz

It would be nice to ditch the Ultimate Addons plugin, if this is the case.

You can try hooking in the featured image using this PHP Snippet:

function featured_image_in_feed( $content ) {
    global $post;
    if( is_feed() ) {
        if ( has_post_thumbnail( $post->ID ) ){
            $output = get_the_post_thumbnail( $post->ID, 'full', array( 'style' => 'float:right; margin:0 0 10px 10px;' ) );
            $content = $output . $content;
        }
    }
    return $content;
}
add_filter( 'the_content_feed', 'featured_image_in_feed' );
add_filter( 'the_excerpt_feed', 'featured_image_in_feed' );
This archived topic is closed to new replies.