Wordpress - enable featured images & set default size


/ Published in: PHP
Save to your folder(s)

Add this to your theme's functions.php file


Copy this code and paste it in your HTML
  1. //allows thumbnails
  2. add_theme_support( 'post-thumbnails' );
  3.  
  4. //sets thumbnail size
  5. set_post_thumbnail_size( 100, 100 );

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.