WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Thumbnail menu not appearing on custom post types (11 posts)

  1. HeroicNate
    Member
    Posted 4 years ago #

    I'm setting up custom post types, and even though I have 'post-thumbnails' under support, the thumbnail menu box does not appear.

    and yes I have thumbnails enabled in functions.

  2. HeroicNate
    Member
    Posted 3 years ago #

    any help?

  3. rofflox
    Member
    Posted 3 years ago #

    Instead of 'post-thumbnails', use 'thumbnail' in the 'supports' parameter and it should be working:

    $args = array(
    	// ...
    	'supports' => array(
    		'title',
    		'author',
    		'excerpt',
    		'editor',
    		'thumbnail',
    		'revisions'
    	)
    	// ...
    );
  4. HeroicNate
    Member
    Posted 3 years ago #

    that doesn't work.

  5. HeroicNate
    Member
    Posted 3 years ago #

    i've tried thumbnail, thumbnails, post-thumbnail, and post-thumbnails. none seem to work.

  6. rofflox
    Member
    Posted 3 years ago #

    Is the thumbnail feature working on the default post page?

    Maybe the code to enable the post-thumbnail feature in your functions.php has a typo?

    add_theme_support('post-thumbnails');
  7. HeroicNate
    Member
    Posted 3 years ago #

    that line is there, and there isn't a typo as everything else that I have as supported is working. Are you telling me that when you create custom post types, the write panel for those types has the featured thumbnail in it?

  8. HeroicNate
    Member
    Posted 3 years ago #

    right now the featured image box only shows up for the regular posts.

  9. HeroicNate
    Member
    Posted 3 years ago #

    i found my problem. I had to add the custom post type to the array besides just posts. So I needed : add_theme_support( 'post-thumbnails', array( 'post', 'custom-type' ) );

  10. Chris Harrison
    Member
    Posted 3 years ago #

    @HeroicNate, I've tried your example and can't seem to get it to work. I'm beginning to wonder if it's an issue with BuddyPress or a plugin I have installed. I can get Post Thumbnails to work fine on Pages & Posts. No dice on my custom post types.

  11. Chris Harrison
    Member
    Posted 3 years ago #

    Disregard. My issues ended up being related to the BuddyPress Classifieds plugin. Killing it fixed my issues. :)

Topic Closed

This topic has been closed to new replies.

About this Topic