Home Forums Newsletter Plugin Support Post Block is adding any image in post as featured image when none is set

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #356025
    User
    Participant

    Hey there!

    I’m currently testing out the plugin via the free version.

    Something I noticed is that when using the Blog Posts block, if you have no featured image set on a post, the block will pull the first image found in the post and use that as the featured image when doing Layout: Full post in the block’s settings.

    Is there anyway to disable that?

    I basically wanted the newsletter to show a post’s title, date, full content, and the FI *only* if there was one. Which 100% works when you just have a post with text and no FI set.

    However, the posts I’m having this issue with have a thumbnail gallery (standard WP block) and no FI set and it’s pulling the very first image in the gallery as the FI.
    The other one I tested, just has a image inside the post lower down after some text content and again no FI set and it’s doing it there too.

    I really don’t want to have to use like a small transparent png for the FI in those cases to bypass this. Is there maybe a setting I’m missing?

    #356026
    Stefano
    Keymaster

    Hi, the plugin does not pull the first gallery image, unless the constant

    NEWSLETTER_USE_POST_GALLERY

    is defined in the wp-config.php of your site OR you have a plugin autowiring the featured images when missing.

    #356030
    User
    Participant

    So I took a look at my wp-config and that wasn’t listed there. It’s also not a plugin since it’s a bare bones test site with just TNP activated. I’m also just using the 2025 theme that comes with WP installations. Could it be the theme then?

    #356036
    Stefano
    Keymaster

    Hi, my fault. The Posts block uses a different image extraction function; I need to fix it to respect the NEWSLETTER_USE_POST_GALLERY or have an option to select the desired behavior.
    On Monday I can work on it.

    #356037
    User
    Participant

    Thank you so much! I know it’s probably a very niche situation when using the posts block, but I really appreciate you looking into it Stefano. Have a great weekend!

    #356043
    Stefano
    Keymaster

    Hi, on version 9.2.4, in the Newsletter/Newsletters/Settings (where one can add the custom CSS to newsletters), you should see two option to disable the featured image extraction from the gallery and the post content.

    #356060
    User
    Participant

    Hey Stefano! I just updated the plugin and unticked those new settings. Then I re-added the post block to my draft newsletter and it’s working perfectly! Thanks again for taking the time to look into this and also making the adjustments.

    #356111
    Michael
    Keymaster

    Hi, glad this has been solved!

    From time to time, we ask our users to rate Newsletter based on their experience: every feedback means the world for us. If you have 5 minutes, here’s the link: https://bit.ly/please-rate-newsletter. A wordpress.org account is required. Thank you!

    #356243
    User
    Participant

    Hi Michael!

    I’m still in the process of testing out the plugin (it’s actually going to be used by a client of mine if all goes well). And honestly, even if they don’t end up going with it, I’m absolutely coming back to give a review for you guys. You’ve been great!

    #356296
    Michael
    Keymaster

    That’s so nice to hear, thanks!

    Michael

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.