February 11, 2017
Add featured image to Custom Post
Description:
Add the PHP code to functions.php (in the child theme). Then edit the Custom Post type. Under ‘Section to display when editing snippets’ check Thumbnail.
Kind:
PHP, Toolset
PHP:
add_action('init', 'my_custom_init'); function my_custom_init() { add_theme_support( 'post-thumbnails' ); add_post_type_support( 'artikelen', 'thumbnail' ); post_type_supports( 'artikelen', 'thumbnail' ); }