Including Thumbnail/Featured Image in Author RSS Feed

Hi,
i am importing the global author post feed with autopost-plugin and dont get the featured image. is there a way to get the featured image in the rss feed?

Thanks!

  • Jude
    • DEV MAN

    Hi there @poccyde

    Hope you're doing great

    This is not possible to do out of the box. You can easily do this with some custom code. You need to add this function at the place where you want the image url to show up.

    wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' );

    Warning:Cautionary note: editing core files is not recommended unless you know what you're doing and even then you'll need to repeat this on updates.

    Cheers
    Jude

  • Jude
    • DEV MAN

    Hi again @poccyde

    In my view the Global Author Feed doesn´t take any images from the source. Right?

    Yes, you're right. By default it does not

    I can mark this as a feature request for you if you want. Its not very complex to do and we'll consider doing it soon if enough members request it.

    Cheers
    Jude

  • Jude
    • DEV MAN

    Hi again @poccyde

    I have written some additional code for you. Delete the old plugin and use my version.

    Here is how it works
    1) If the post has no featured image then it works exactly as original
    2) If the post has a featured image it can be found under the <featuredImage> node.

    Hope that helps
    Jude

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.