WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Force Featured Image

Ever wanted to force a user to publish a post with a featured image of a certain dimension? Search no more.

  1. Upload force-featured-image to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. This plugin lets you specify which post-type requires to force a featured image to. It will also let you specify minimum dimensions for the image. Let's say, for example, you want to force a user to set an image on the default post type with the following dimensions (400px * 400px). Put this code in the function.php of your theme :
function theme_force_featured_image( $options ){
        $options['post'] = array(
            'width'  => 400,
            'height' => 400,
        );

        return $options;
    }
    add_filter( 'force_featured_image_post_type', 'theme_force_featured_image' );

Requires: 3.5 or higher
Compatible up to: 3.7.1
Last Updated: 2013-12-9
Downloads: 274

Ratings

0 stars
0 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.