Skip to content

Instantly share code, notes, and snippets.

@phmLabs
Last active June 14, 2019 08:43
Show Gist options
  • Save phmLabs/9fda59a1d63d8eaac203231f920dda5b to your computer and use it in GitHub Desktop.
Save phmLabs/9fda59a1d63d8eaac203231f920dda5b to your computer and use it in GitHub Desktop.
add featured image to rss feed
#wp-includes/feed-rss2.php
#https://wordpress.org/support/topic/image-size-with-get_the_post_thumbnail_url/
<image><?php echo wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()), 'medium_large')[0]; ?></image>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment