• 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

Generate theme: Front page shows both the featured image and the in-post 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 › General Discussion › Generate theme: Front page shows both the featured image and the in-post image

This topic is: not resolved
  • This topic has 3 replies, 2 voices, and was last updated 9 years, 7 months ago by TimoKiander.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • April 29, 2014 at 1:15 am #102863
    TimoKiander
    Participant

    Hi!

    Is there a way to filter out the in-post image on the front page of Generate theme?

    In addition of using the featured image, I'm also using an in-post image in my blog posts. However, this image is also displayed within a small excerpt that shows on the front page.

    Sorry, the blog is under maintenance, so I can't give you the URL right now.

    Cheers,
    Timo

    May 1, 2014 at 5:23 am #103171
    JanHoek
    Participant

    Try to put this in your functions.php

    add_filter('the_content','image_content_filter',11);
     
    function image_content_filter($content){
     
        if (is_home() || is_front_page()){
          $content = preg_replace("/<img[^>]+\>/i", "", $content);
        }
     
        return $content;
    }

    Hi, my name is Jan Hoek. Sure, they all say I have a big head, but I like to think it’s way too small for all my ideas.

    May 1, 2014 at 1:04 pm #103211
    TimoKiander
    Participant

    Hi Jan!

    Ok, thanks!

    Cheers,
    Timo

    May 1, 2014 at 1:18 pm #103215
    TimoKiander
    Participant

    Ok, so there is something fishy going on ...

    Now the front page shows no featured images at all, only the in-post image inside a post.

    I'd like a featured image on the front page and then just a post picture inside the post.

    If I choose Include Featured Image option Under Genesis - Theme Settings, the featured image displays nicely on the front page, but it also shows inside the post, with the post image.

    It's like, this situation has turned around. Now the duplicate image issue is inside the post.

    Any ideas what to do next?

    Cheers,
    Timo

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