Skip to content

Shortcode Block not working in Synched Pattern in Template #68214

Open
@krokodok

Description

@krokodok

Description

The Shortcode Block does not parse shortcodes when used in Synched Patterns in Block Editor Page Templates.

Step-by-step reproduction instructions

  1. Go to a blank page and insert the Shortcode Block into the content. I used this shortcode for testing: [caption]Caption[/caption]
  2. Duplicate the block and transform it to a Synched Pattern.
  3. Go to the frontend and observe both blocks working from inside the page content.
  4. Now cut both blocks to the clipboard and navigate to the page template. Insert the blocks somewhere.
  5. Go to the frontend and observe only the block working, that it is not a Synched Pattern. The other displays the raw shortcode content without rendering.

Screenshots, screen recording, code snippet

Image Image

Environment info

I used WordPress Playground with theme Twenty Twenty-Five, WordPress version 6.7.1 and Php 8.0.

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

  • Yes

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Block] ShortcodeAffects the Shortcode Block[Feature] Synced PatternsRelated to synced patterns (formerly reusable blocks)[Type] BugAn existing feature does not function as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions