Group Mods

  • Profile picture of @mercime
  • Profile picture of r-a-y
  • Profile picture of Hugo

Problem with post-thumbnail on Custom Post Type (3 posts)

Started 1 year, 10 months ago by: Chris Harrison

  • Profile picture of Chris Harrison Chris Harrison said 1 year, 10 months ago:

    I’m having an issue getting Post Thumbnails (Featured Image) to display on a Custom Post Type I’ve created within a BuddyPress child theme. I’ve enabled them within the child theme, and they work fine on Posts and Pages, but nothing I’ve done works with regards to my Custom Post Type (Listings).

    Tried the generic approach, and just enabled them globally:

    add_theme_support( 'post-thumbnails' );

    Then I tried to specifically set the custom-type in an array:

    add_theme_support( 'post-thumbnails', array( 'post', 'page', 'listing' ) );

    Are there any known issues with Custom Post Types and their support for Post Thumbnails? Any idea how I might be able to get this to work?

  • Profile picture of mikeschinkel Mike Schinkel said 1 year, 10 months ago:

    Is it related to BuddyPress? If so, I can’t help.

    OTOH did you know TwentyTen displays thumbnails as replacement headers and not in the body of the post, a decision I challenged unsuccessfully. If the thumbnail isn’t the same size as the header, it won’t show anything at all! I still can’t fathom why anyone thought that made sense.

    II have some code to display a thumbnail in a Trac ticket but I can’t access it right now since I’m typing on my iPad and afraid I’ll lost this if I switch tasks and go looking for it. Just look for a thumbnail-related ticket under my name.

  • Profile picture of Chris Harrison Chris Harrison said 1 year, 10 months ago:

    It ended up being a plugin conflict. Specifically, it was due to problems with the BuddyPress Classifieds plugin.