Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function featured_image_content($content) {
- if (has_post_thumbnail()) return the_post_thumbnail().$content;
- return $content;
- }
- add_filter('the_content', 'featured_image_content');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement