fallback image for featured image

Your code looks OK and it should work just fine. But there are some things you can (and you should) fix. 1. You don’t use absolute URL for your fallback image You pass /wp/wp-content/themes/klicknet-theme/images/testbild.png as src of your image. It would be much better and more secure if you’d use WP functions in there. For … Read more

Require a featured image to publish post

You can do something like this with the hook pre_post_update : function wpse_108013_mandatory_featured_image() { if(!has_post_thumbnail()) { // here you check if there’s a featured image wp_die( ‘Featured image must always be set !’ ); // there is no featured image } } add_action( ‘pre_post_update’, ‘wpse_108013_mandatory_featured_image’ );

Remove dimensions from filename featured image

In addition to creating additional dimension, WordPress does keep your original image. Your original image is in this link http://whatweblog.com/wp-content/uploads/2015/05/hue.gif So, instead of stopping WordPress from creating additional dimension, you should retrieve the full image when displaying the featured image. You can get the full image with this – the_post_thumbnail(‘full’); In your case, change <?php … Read more