jmlapam

Untitled

Feb 20th, 2014
67
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. add_filter( 'post_thumbnail_html', '_default_post_image' );
  2. function _default_post_image( $html ) {
  3.  
  4. if ( empty( $html ) )
  5. $html = '<img src="' . trailingslashit( get_stylesheet_directory_uri() ) . 'images/image-fallback.png' . '" alt="" />';
  6.  
  7. return $html;
  8. }
RAW Paste Data