Using Shortcode or WP Block markup inside MB Block no longer works

Support MB Blocks Using Shortcode or WP Block markup inside MB Block no longer works

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #42148
    brandonjpbrandonjp
    Participant

    Hello. It seems like the order of rendering might have changed.

    If I place a shortcode or WordPress Block markup inside a custom block, it is not longer rendering.

    I have a MB View Shortcode & a custom Block made with MB Builder. My block is using Render with Code and contains the MB View Shortcode. Here is my MB Block code: https://cln.sh/yv22ngy3 -- Here is my MB View Shortcode: https://cln.sh/mdMhKbG2

    This was working fine until about a month ago. The shortcode still renders correctly on it's own when placed on a page, but not when placed inside the Block. Now my Block is rendering just the shortcode text string, instead of actually rendering the shortcode. Here is how it renders now: https://cln.sh/Nz1DZS35 -- It also is no longer rendering WordPress block code

    #42166
    PeterPeter
    Moderator

    Hello,

    I don't see that issue on my demo site. Please try to add a line break before the shortcode or try to switch the theme to a WordPress theme (2021) and check this issue again.

    #42172
    brandonjpbrandonjp
    Participant

    Hi Peter, I can confirm that this is an issue on several sites. It happens even when using default WP theme and only Meta Box plugins enabled.

    I believe it is related to this issue: https://support.metabox.io/topic/line-breaks-in-css-getting-wrapped-in-paragraphs/?swcfpc=1 -- Because both problems started happening at the same time after a Meta Box update. And the issue is happening in templates using FSE.

    Here is an example url: https://snipsnip.pro/s/629 (screenshot: https://cln.sh/Sr1jhLhh )
    The big green box was placed using a shortcode in the Post using Block Editor. And below it is the same shortcode placed in the Single template using the Full Site Editor.

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