• 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 get featured images to work on blog using Magazine theme

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 › General Discussion › How to get featured images to work on blog using Magazine theme

This topic is: not resolved

Tagged: featured image, magazine

  • This topic has 11 replies, 4 voices, and was last updated 10 years, 2 months ago by jodzeee.
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • February 14, 2013 at 8:55 pm #20447
    Alex Navas
    Member

    I set up the blog page to show excerpts and it looks like that's working fine. The next thing I set up under settings is using the featured image sized at 150x150, however, on the blog page, there are no featured images displaying, only the first image that shows up in the post which is sized totally different for each post.

    I added the images to the Featured Image section within the post, but they aren't showing up right. How can I get it working correctly?

    Here's the site: http://www.iceanow.org/blog

    Thanks for your help.

    Alex

    February 17, 2013 at 12:47 pm #20856
    Brad Dalton
    Participant

    Try Genesis > Theme Settings > Content Archives > Display Post Content > Set Content Character Limit > Include featured image 150 x 100 featured image


    Tutorials for StudioPress Themes & WooCommerce.

    February 17, 2013 at 3:30 pm #20884
    Alex Navas
    Member

    Thanks for the reply Brad. I checked and already have those settings checked.

    http://screencast.com/t/6vpqGJrdGp

    March 3, 2013 at 3:32 am #23869
    jodzeee
    Member

    Alex: Did you get the featured image to work? I'm not sure if we have the same problem, but I've got a blog page that shows the thumbnails with the excerpts, but not on the post itself. It's supposed to show on both, isn't it?

    March 3, 2013 at 7:40 am #23881
    Anita
    Keymaster

    @alexnavas, do you have both a featured image and a image in the beginning of your content?


    @jodzeee
    , no featured images do not automatically show up on the post. It's only a thumbnail image used on the home, blog, and archive pages. If you want the featured image to show up "automatically" when you add a featured image, I have a instructions on how to accomplish this. Just write back here and I can post the link.


    Love coffee, chocolate and my Bella!

    March 3, 2013 at 12:12 pm #23927
    jodzeee
    Member

    Yes, I would like to see the instructions. Thank you!

    March 3, 2013 at 2:00 pm #23934
    Anita
    Keymaster

    Here is the link to the instruction in a text file. The originator noted in there is not operational anymore. I am glad I copied these before their website went down.


    Love coffee, chocolate and my Bella!

    March 3, 2013 at 4:32 pm #23953
    jodzeee
    Member

    Thank you! I was able to get it to work, but with some modification to enabling support and setting the size (the thumbnail code didn't work for me and I remembered seeing this in the Codex):

    **  Enabling Support and setting size for Post Thumbnails   */
    if ( function_exists( 'add_theme_support' ) ) {
    add_theme_support( 'post-thumbnails' );
    set_post_thumbnail_size( 300, 200 );
    }

    Then I added this from your instructions:

    /** Add Featured Image to Posts - the Webonanza style  */
    add_action( 'genesis_after_post_title', 'child_do_single_post_image' );
    function child_do_single_post_image() {
    if( is_single() )
    genesis_image( array( 'size' => 'post-thumbnail', 'attr' => array( 'class' => 'alignright post-image' ) ) );
    }

    Thanks again, I really appreciate the help and quick response!

    March 3, 2013 at 4:39 pm #23954
    Anita
    Keymaster

    @jodzeee, you're welcome. Glad it worked out for you. I hope @alexnavas was able to resolve his issue.


    Love coffee, chocolate and my Bella!

    July 19, 2013 at 2:10 pm #51485
    jodzeee
    Member

    I set this topic aside and now am circling back - this worked great, but now I have the featured image on pages I don't want it to show up. Is there a way to specify that it shows up only certain pages or types?

    I want it on my news story pages:
    http://www.uncorkeddesign.com/clients/jmwh/the-neighborhood-where-history-meets-art/

    But not on my listing pages (AgentPress theme):
    http://www.uncorkeddesign.com/clients/jmwh/listings/1803-portland-gold-drive/

    Thank you.

    July 19, 2013 at 2:14 pm #51486
    Brad Dalton
    Participant

    Change the conditional tag from

     is_single

    to

    if(in_category(news-and-awards) ) {

    Tutorials for StudioPress Themes & WooCommerce.

    July 19, 2013 at 2:28 pm #51488
    jodzeee
    Member

    Well that was easy! Thank you so much!

    To clarify for anyone else (or in case I need to refer back to this again someday!) ...

    	if( in_category('news-and-awards') )
    
  • Author
    Posts
Viewing 12 posts - 1 through 12 (of 12 total)
  • The forum ‘General Discussion’ 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

© 2023 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