• 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

Category Blog Page – add featured image

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 › Category Blog Page – add featured image

This topic is: not resolved

Tagged: blog template, featured image

  • This topic has 7 replies, 2 voices, and was last updated 11 years, 4 months ago by 2TechGirls.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • July 21, 2014 at 1:29 pm #115240
    2TechGirls
    Member

    1. How can I add a featured image to pages using the blog template?

    Hi, I've created 2 category blog pages for the main categories on the site following the instructions here - http://my.studiopress.com/tutorials/category-blog-page/. I've added a featured image on those two pages. The featured image only displays on the default template, not on the blog template.

    2. How can I add a featured image to a category ? I've tried a few plugins with no luck.

    Thanks,
    Kris

    http://2techgirls.com/atforum/news-updates/
    July 21, 2014 at 2:01 pm #115245
    Brad Dalton
    Participant

    Use the Genesis > Theme Settings

    Or add in the post image directly to the template.

    add_action( 'genesis_entry_content', 'genesis_do_post_image' );
    

    Tutorials for StudioPress Themes.

    July 21, 2014 at 2:13 pm #115247
    2TechGirls
    Member

    Neither of those work. I had already changed the Genesis > Theme Settings without any luck. Adding the code
    add_action( 'genesis_entry_content', 'genesis_do_post_image' );
    to the function.php file does not update my page.

    I'm using the Beautiful Pro theme.

    July 21, 2014 at 2:52 pm #115252
    Brad Dalton
    Participant

    I suggested adding it directly to the template not the functions file.

    Or add in the post image directly to the template.


    Tutorials for StudioPress Themes.

    July 21, 2014 at 7:23 pm #115281
    2TechGirls
    Member

    Ah, sorry, missed that. We've made a change and it's working.

    Thanks.

    July 22, 2014 at 10:05 am #115389
    2TechGirls
    Member

    correction this was not resolved. My solution added the featured image to every post on the blog page. The @braddalton there is not a blog template in this child theme. The blog template functionality is handled in the loops.php file that resides in the Genesis\lib\structure. I attempted to over ride this with my own plugin duplicating all the functionality of this loop, but adding the featured image of the page. It did not work.

    Note: for some reason I cannot trap the page id of the blog page that uses the blog_page.php template.
    Note: the function is_page(); returns false.

    We are still open to ideas. It should not be this difficult to just add a featured image to a page.

    July 22, 2014 at 10:33 am #115402
    Brad Dalton
    Participant

    Understand. The conditional tag for the blog page is tricky. You need to find the output in the source code so it could be.

    if ( is_page_template('blog_page.php') )
    

    or it might be:

    if ( is_page_template('blog-page.php') )
    

    Another option i think you should consider is using this code to create your own custom category templatesrather than the category blog page templates.


    Tutorials for StudioPress Themes.

    July 22, 2014 at 10:44 am #115406
    2TechGirls
    Member

    is_page_template('blog_page.php') comes up true in genesis_do_loop(), but comes up false after this process completes.
    i'll need to create another custom archive page as you suggested.

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 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