Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2013
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. function featured_image_content($content) {
  2. if (has_post_thumbnail()) return the_post_thumbnail().$content;
  3. return $content;
  4. }
  5.  
  6. add_filter('the_content', 'featured_image_content');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement