Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter( 'post_thumbnail_html', '_default_post_image' );
- function _default_post_image( $html ) {
- if ( empty( $html ) )
- $html = '<img src="' . trailingslashit( get_stylesheet_directory_uri() ) . 'images/image-fallback.png' . '" alt="" />';
- return $html;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement