Add Featured Image Support to a WordPress theme


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

Place this code in your theme's functions.php file to activate featured images.


Copy this code and paste it in your HTML
  1. if ( function_exists( 'add_theme_support' ) ) {
  2. add_theme_support( 'post-thumbnails' );
  3. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.