Remove Thumbnail Support from a Specific Post Type

Snippets by IsItWP

Do you want to remove thumbnail support from a specific post type? While there’s probably a plugin for this, we have created a quick code snippet that you can use to remove thumbnail support from a specific post type in WordPress.


All you have to do is add this code to your theme’s functions.php file or in a site-specific plugin:

function remove_thumbnail_support(){

Note: If this is your first time adding code snippets in WordPress, then please refer to our guide on how to properly add code snippets in WordPress, so you don’t accidentally break your site.

If you liked this code snippet, please consider checking out our other articles on the site like: 7 best WordPress poll plugins and how to create a WordPress donation form.

Comments   Leave a Reply

  1. Can you also remove the thumbnail support for a specific page template?

    1. If you don’t want to display a thumbnail within a page template you should just remove the code that adds your thumbnails from the template.

      1. Adrian Acevedo Galaviz November 28, 2012 at 11:56 am


        function zd_remove(){
        $post_id = $_GET[‘post’] ? $_GET[‘post’] : $_POST[‘post_ID’] ;

        // checks for post/page ID
        if ($post_id = array(10,11,12,13))
        remove_post_type_support( $post_type, $supports );

        add_action(‘add_meta_boxes’, ‘zd_remove’);

  2. I dun have the  functions.php in my wordpress… Can assist?

    1. Create a text file called functions.php and upload to your theme folder with the code in this pastbin sample http://pastebin.com/rwziqmF7

  3. James McBride May 28, 2011 at 9:01 am

    Hi Kevin, I’m a regular WP Snipp reader and I have to ask this, on the top right of your sidebar you have the single best looking RSS/Facebook display I’ve ever seen. Is that a plugin or did you code it yourself?

    1. Hi James,
      Very nice to hear thanks! This was not a plugin I wrote the HTML, CSS and the icons I got from a few free icon sources and I created a few like design poke and design bump. I posted the code and a link to the images on pastebin if you wanted to do something similar.


Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

WordPress Launch Checklist

The Ultimate WordPress Launch Checklist

We've compiled all the essential checklist items for your next WordPress website launch into one handy ebook.
Yes, Send Me the Free eBook!