[wp-trac] [WordPress Trac] #54759: Shortcodes are not working in page templates in the new "Beta" editor

WordPress Trac noreply at wordpress.org
Sat Jan 29 06:11:07 UTC 2022

#54759: Shortcodes are not working in page templates in the new "Beta" editor
 Reporter:  nextend_ramona  |       Owner:  (none)
     Type:  defect (bug)    |      Status:  reopened
 Priority:  normal          |   Milestone:
Component:  General         |     Version:
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:

Comment (by manfcarlo):

 I think it might be helpful to collate the history of the shortcode
 question, which I took the time to research:

 * [https://github.com/WordPress/gutenberg/pull/20343 February 2020:]
 template __parts__ were changed from using the_content filter to
 explicitly applying do_shortcode
 * [https://github.com/WordPress/gutenberg/pull/20452 February 2020:] a
 pull request was opened to remove do_shortcode from template __parts__,
 but it was never merged
 * [https://github.com/WordPress/gutenberg/issues/23626 July 2020:] a
 discussion was opened about whether to support shortcodes in block
 templates (the heading mentions parts, but I think the author was
 referring to templates)
 * [https://github.com/WordPress/gutenberg/pull/37545 December 2021:]
 shortcodes were added to block __templates__ in the Gutenberg plugin
 January 2022:] shortcodes were "mistakenly" (?) added to block
 __templates__ in core during the RC (!) stage of 5.9

 I also noticed that the [https://make.wordpress.org/core/2022/01/26
 /preliminary-roadmap-for-6-0/ recent roadmap for 6.0] by @matveb mentioned
 the exploration of "inline tokens." Some of the discussions linked above
 (such as
 this comment]) did cite the usefulness of shortcodes as "inline tokens" as
 a reason to support them within blocks, although others such as @azaozz

 Personally, I am neutral to whether shortcodes are supported or not, and
 will gladly defer to those with a greater involvement in the project.
 However, the shortcode question has suffered from scattered discussions
 and a lack of leadership, meaning that code changes have been made without
 the full context of arguments that were previously and validly put
 forward, and that's what I'm not so neutral about.

Ticket URL: <https://core.trac.wordpress.org/ticket/54759#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list