Title: Custom post theme &#8211; thumbnail support
Last modified: September 1, 2016

---

# Custom post theme – thumbnail support

 *  [wojkam](https://wordpress.org/support/users/wojkam/)
 * (@wojkam)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/custom-post-theme-thumbnail-support/)
 * Hi,
    I’ve installed latest version of wordpress and tried to create custom post
   type with thumbnail support:
 *     ```
       protected function _applyCustomPostTypes() {
               add_action( 'init', array($this, 'customPostMedia') );
           }
   
           public function customPostMedia() {
               register_post_type( 'custom-media',
                   array(
                       'labels' => array(
                           'name' => __( 'Media' ),
                           'singular_name' => __( 'Media' )
                       ),
                       'public' => true,
                       'has_archive' => true,
                       'rewrite' => array('slug' => 'custom-media'),
                       'supports' => array(
                           'title','editor','thumbnail'
                       )
   
                   )
               );
           }
       ```
   
 * No thumbnail box is shown in add/edit post page for this post type in admin.
 * How can I add this support ?
 * Best

Viewing 1 replies (of 1 total)

 *  [implenton](https://wordpress.org/support/users/implenton/)
 * (@implenton)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/custom-post-theme-thumbnail-support/#post-7641347)
 * Hello [@wojkam](https://wordpress.org/support/users/wojkam/),
 * you might want to check if your theme supports post thumbnails. If not you can
   enable it like so:
 * `add_theme_support( 'post-thumbnails' );` in functions.php
 * [https://developer.wordpress.org/reference/functions/add_theme_support/#post-thumbnails](https://developer.wordpress.org/reference/functions/add_theme_support/#post-thumbnails)
 * [https://codex.wordpress.org/Function_Reference/register_post_type#supports](https://codex.wordpress.org/Function_Reference/register_post_type#supports)

Viewing 1 replies (of 1 total)

The topic ‘Custom post theme – thumbnail support’ is closed to new replies.

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 1 reply
 * 2 participants
 * Last reply from: [implenton](https://wordpress.org/support/users/implenton/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/custom-post-theme-thumbnail-support/#post-7641347)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
