Add Featured Image and Excerpt Support to Custom Posts

add featured image to wordpress custom post type

I ran into this problem when looking for Featured Image and the excerpt in a custom post created by an external plugin. I couldn’t find them, and apparently, the solution is straightforward.

Simply drop this in your functions.php file of your theme

add_post_type_support( '<POST_TYPE_NAME>', 'thumbnail' );
add_post_type_support( '<POST_TYPE_NAME>', 'excerpt' );

Join My Journey Into The New Economy

Stay up to date on Web3, NFTs and Crypto,
curated just for you.

Guy Eshet

Guy Eshet

Guy Eshet is an expert in Blockchain technologies, NFTs, and Web development. Guy has been developing software for over 15 years, currently focusing on Web3. Guy is fluent in 5 languages, loves meeting new people, learning about various topics, and improving his skills.

Share this article!

Leave a Reply

Your email address will not be published.