Title: Theme Thumbnails Support
Last modified: August 30, 2016

---

# Theme Thumbnails Support

 *  Resolved [Mustafa 007](https://wordpress.org/support/users/mustafa-007/)
 * (@mustafa-007)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/custom-posts-loading-problem-1/)
 * Hi
    I have developed a very simple WordPress theme but I have problem with **
   thumbnails** or featured image for my custom post types. I have added below codes
   to my _function.php_ file for theme support of thumbnails, but yet have problem
   with the custom post type’s thumbnails. what is the problem? Thanks
 * `add_theme_support('post-thumbnails');`
 * and also
 *     ```
       function custom_theme_setup() {
           add_theme_support( 'post-thumbnails', array('portfolio'));
       }
       add_action( 'after_setup_theme', 'custom_theme_setup' );
       ```
   

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Moderator [Jose Castaneda](https://wordpress.org/support/users/jcastaneda/)
 * (@jcastaneda)
 * THEME COFFEE MONKEY
 * [10 years, 10 months ago](https://wordpress.org/support/topic/custom-posts-loading-problem-1/#post-6369361)
 * Taken from quick search of the forums:
 * >     ```
   >     'supports' => array( 'title', 'editor', 'comments', 'excerpt', 'custom-fields', 'thumbnail' ),
   >     ```
   > 
   > when registering your custom post type, you must add the thumbnail support.
   > Here is an example from my supports line, adding my required items to my CPT
 * Just be sure to add `thumbnail` to the list of supported things when you register
   the post type.
 *  Thread Starter [Mustafa 007](https://wordpress.org/support/users/mustafa-007/)
 * (@mustafa-007)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/custom-posts-loading-problem-1/#post-6369404)
 * Thanks man
    It dose not work yet, don’t why. can you please write a proper example
   of it? Thanks.
 *  Moderator [Jose Castaneda](https://wordpress.org/support/users/jcastaneda/)
 * (@jcastaneda)
 * THEME COFFEE MONKEY
 * [10 years, 10 months ago](https://wordpress.org/support/topic/custom-posts-loading-problem-1/#post-6369438)
 * A good example is in the codex’s elaborate example:
    [https://codex.wordpress.org/Function_Reference/register_post_type#Example](https://codex.wordpress.org/Function_Reference/register_post_type#Example)
 *  Thread Starter [Mustafa 007](https://wordpress.org/support/users/mustafa-007/)
 * (@mustafa-007)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/custom-posts-loading-problem-1/#post-6369467)
 * Thanks Jose

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Theme Thumbnails Support’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [Mustafa 007](https://wordpress.org/support/users/mustafa-007/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/custom-posts-loading-problem-1/#post-6369467)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
