Adding Link to the featured Image - Genesis
function featuredtoRSS($content) { | |
global $post; | |
if ( has_post_thumbnail( $post->ID ) ){ | |
$content = '<a href=" . get_permalink() . " rel="nofollow ugc">' . get_the_post_thumbnail( $post->ID, $imgsize, array( 'style' => 'float:left; margin:0 15px 15px 0;' ) ) . '</a>' . $content; | |
} | |
return $content; | |
} | |
add_filter('the_excerpt_rss', 'featuredtoRSS'); | |
add_filter('the_content_feed', 'featuredtoRSS'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment