• 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

Metro Pro: 2 questions – Display featured image in posts, edit archive

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 › Metro Pro: 2 questions – Display featured image in posts, edit archive

This topic is: not resolved

Tagged: category archive, featured image, meta data, Metro Pro

  • This topic has 2 replies, 3 voices, and was last updated 11 years, 10 months ago by Dan B.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • September 13, 2013 at 11:40 am #62308
    dpeschio
    Member

    Hi and thanks in advance for any help. I am building a site using Metro Pro and would like to display the featured image under the page title on single posts - except for the category 'maps'. How can I accomplish this?

    I also would like to remove the author meta data, filed under and tags from category archives. Can anyone help me with this as well?

    The dev site is here: http://dev.carolinaaletrails.com

    Thanks!

    http://dev.carolinaaletrails.com
    September 13, 2013 at 10:56 pm #62456
    coreyallen
    Member

    I'd like to know this as well.

    September 14, 2013 at 1:28 am #62460
    Dan B
    Participant

    Hi dpeschio,

    Just want to say that I love your website. I'm a Raleigh guy, but I'm now thinking about moving closer to an Ale Trail. 🙂

    Here's how I display featured images in my Metro Pro theme mod. The following code would go in your Functions.php folder, and you could customize certain aspects, to suit your site.

    This code will show featured images in Category 1 and Category 2, but none others (i.e. such as Maps):

    
    // Add Post image above post title, single posts only (Gen v2) //
    add_action( 'genesis_entry_header', 'show_post_image' );
    function show_post_image() {
    	if ( in_category( 'category1')) {
    		echo get_the_post_thumbnail($thumbnail->ID);
    	}
    	elseif ( in_category( 'category2')) {
    		echo get_the_post_thumbnail($thumbnail->ID);
    	}
    	else {
    	}
    }
    

    As far as I'm aware, there is not a way turn on featured images for all posts, except one category. Basically, you must enable the posts only for the categories you wish to see features images in.

    Good luck!


    Dan @ ZindaMedia
    Marketing, Fundraising and Social Media strategies for non-profits.

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and 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