Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter virtualedgesolutions

    (@virtualedgesolutions)

    I don’t know PHP, but this snippet that Rank Math provided me prevents their plugin from adding the duplicate image to the podcast feed, when I enable their plugin to add the images to my RSS feed:

    add_filter('rank_math/frontend/rss/before_content', function ($content) {
    global $wp;
    $current_url = home_url(add_query_arg($_GET,$wp->request));
    if ( str_contains( $current_url, '/feed/podcast') ) {
    return '';
    }
    return $content;
    }, 10, 1);

    Can you, or someone else who sees this post, help to adapt it to the site on which I’m using RSS Retriever? Thanks!

    Thread Starter virtualedgesolutions

    (@virtualedgesolutions)

    Thanks to chatgpt, I created a code snippet that removes the image from Seriously Simple Podcasting’s podcast feed output, so that there won’t be a duplicate image in the podcast feed. If anyone’s interested, let me know and I’ll provide it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘disable duplicate images in podcast feed’ is closed to new replies.