Monday, June 20, 2022
The Great Tit
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' );
Did I help you? Support me on Patreon!
Beep this article to your friends!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram