• Resolved BeeCee

    (@csigncsign)


    I have checked this issue by activating and deactivating this plugin:

    when it is active/enabled, then my own site’s feed shows the featured image of a post twice: the normal big one (which is ok) and a small thumbnail:

    https://www.dropbox.com/s/i3mxvwq85gwa04d/rssimagetwice.jpg

    When I disable this plugin, then it shows my normal big featured post image.

    (WP 4.9.1, ENFOLD-Theme)

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter BeeCee

    (@csigncsign)

    By the way, if this might help:
    the theme uses this function to add the post’s featured image to the RSS feed:

    function avf_featured_image_rss($content) {
      global $post;
      if ( has_post_thumbnail( $post->ID ) ){
        $content = '<div>' . get_the_post_thumbnail( $post->ID, 'featured' ) . '</div>' . $content;
      }
      return $content;
    }
    add_filter('the_excerpt_rss', 'avf_featured_image_rss');
    add_filter('the_content_feed', 'avf_featured_image_rss');
    Plugin Contributor Hardeep Asrani

    (@hardeepasrani)

    Hey there,

    Is the issue being caused by the plugin? If you deactivate the plugin, is it still happening?

    Thread Starter BeeCee

    (@csigncsign)

    yes it is, as I said in the first post.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Plugin causes, that my own site feed shows 2x the featured image’ is closed to new replies.