wordpress how to set featured image code example
Example: add featured image
function fn_add_featured(){
add_theme_support( 'post-thumbnails' );
add_image_size( 'post-imge', 730, 380 );
}
add_action('after_setup_theme','fn_add_featured');
function fn_add_featured(){
add_theme_support( 'post-thumbnails' );
add_image_size( 'post-imge', 730, 380 );
}
add_action('after_setup_theme','fn_add_featured');