Author is Aleš Sýkora
Updated: 20. 9. 2022, Added: 20. 6. 2022
Add featured images support for Page post type in WordPress
If you want to use featured images with Pages in WordPress, you must add the support for them. You will do that with your custom code plugin, or code snippets plugin like advanced scripts.
/* Display Featured Image field for page post type */
function gt_post_feimage() {
add_theme_support( 'post-thumbnails' );
}
add_action( 'after_setup_theme', 'gt_post_feimage' );