Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function imageinRSS($content) {
- global $post;
- if ( has_post_thumbnail( $post->ID ) ){
- $content = '<div>' . get_the_post_thumbnail( $post->ID, 'medium', array( 'style' => 'margin-bottom: 15px;' ) ) . '</div>' . $content;
- }
- return $content;
- }
- add_filter('the_excerpt_rss', 'imageinRSS');
- add_filter('the_content_feed', 'imageinRSS');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement