• Blocks created with Block Lab don’t get included in Post Content in emails.

    How does MailPoet decide what to include? And is there a way to create custom blocks which will get included? I note the blocks from other plugins do get included (e.g. Atomic Blocks) – so it is not only Core blocks which are included.

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi Simon,

    When you go to the Automatic Latest Content widget’s settings, you can select what you’d like to display there: Posts, Pages, Media, etc.

    If you see the option to add Blocks from the Block Lab plugin there, you can select it. Otherwise, it may not be integrated with our plugin, unfortunately.

    Thread Starter Simon Hayward

    (@simonhayward)

    Sorry but this doesn’t answer the question.

    Let me try again:

    Mailpoet filters the content of a post that it includes in email e.g. shortcodes are stripped out and it has special handling for images.
    When a post is created from (Gutenberg) Blocks that content is accessed via get_post(). However not all Blocks are included in the email. I can’t see anything in the MailPoet code that would strip out particular Blocks but something is having this effect.

    Any suggestions where to look?

    Thanks

    Hi Simon, did you ever find a solution?

    My problem is slightly different, yet possibly related…I use Stackable and one of the blocks appears as HTML code instead of the block. I use full post for my feed, and it isn’t ALL BLOCKS, just some blocks that it does that to…

    Paul
    aka PolyWogg

    Thread Starter Simon Hayward

    (@simonhayward)

    Unfortunately not. I was intending to go though their code in more detail to see if I could find where different block types might be differentiated, but I didn’t get to it yet.
    When I first looked I found where they strip out shortcodes, convert headings to H1-3 only, but couldn’t see anything that dealt with block types – it just seemed to take the raw post and work on the HTML.
    Let me know if you find anything? ??

    Will do…In my case, it is still sharing the content, it just puts gibberish in front of it. If I could add a tag in front of it (Stackable has easy CSS additions), and it would let me filter it out, might be able to just let the raw go…

    P.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Not all blocks appear in Post Content’ is closed to new replies.