• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

How to add featured images to a custom post type

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › How to add featured images to a custom post type

This topic is: resolved

Tagged: Custom Post Type, featured image

  • This topic has 2 replies, 2 voices, and was last updated 8 years, 10 months ago by [email protected].
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • January 6, 2017 at 5:38 pm #198894
    [email protected]
    Participant

    I'm attempting to add a featured image to the top of the post entry for a custom post type called Team, but I can't seem to get the image to display.

    I put this code in the single-team.php file:

    add_action( 'genesis_entry_content', 'featured_post_image', 8 );
    function featured_post_image() {
      if ( !is_singular( ‘team’ )) return;
        the_post_thumbnail('enterprise_team_thumb'); 
    }

    Here is a link to a Team post: https://www.policymap.com/blog/team/maggie-mccullough/

    Thanks in advance for your help!

    https://www.policymap.com/blog/team/maggie-mccullough/
    January 7, 2017 at 4:12 am #198938
    Brad Dalton
    Participant

    Look in the archive-portfolio.php file in the Executive Pro child theme to see how its coded.


    Tutorials for StudioPress Themes.

    January 7, 2017 at 12:07 pm #198958
    [email protected]
    Participant

    Thanks, Brad! I actually figured out that it was the exclamation point in the if singular statement that was preventing the function from working, but I'll consult that file if I run into any other issues!

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘How to add featured images to a custom post type’ is closed to new replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble