Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shortcodes not rendering from Templates #50743

Closed
kubiqsk opened this issue May 18, 2023 · 3 comments
Closed

Shortcodes not rendering from Templates #50743

kubiqsk opened this issue May 18, 2023 · 3 comments

Comments

@kubiqsk
Copy link

kubiqsk commented May 18, 2023

Description

Shortcodes that are placed in Template in Site editor are not converted to HTML code on frontend but they stay in [shortcode] raw text format.

This can be temporarily fixed by creating a custom Template part, putting shortcode in it and then using this template part inside Template in Site editor - then everything works, but it's a very tricky solution.

Step-by-step reproduction instructions

Edit template for single post in Site editor and put there eg. Contact Form 7 shortcode, but you can also use their block, because it's also based on shortcode.
Put it eg. below Post content block and save it and take a look on frontend.

Screenshots, screen recording, code snippet

admin: https://i.imgur.com/oxEuvFi.png
frontend: https://i.imgur.com/VZTcnJ7.png

Environment info

No response

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

@kubiqsk
Copy link
Author

kubiqsk commented May 18, 2023

Usecase eg. I want to have CTA block with a newsletter form below the post content on single article detail page

@kubiqsk
Copy link
Author

kubiqsk commented May 18, 2023

This is happening no matter if Gutenberg plugin is active or not

@Mamaduka
Copy link
Member

This is a known issue and will be fixed in the core. Trac ticket: https://core.trac.wordpress.org/ticket/58333.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants