[wp-trac] [WordPress Trac] #56847: Template parts and patterns

WordPress Trac noreply at wordpress.org
Mon Apr 15 11:48:42 UTC 2024


#56847: Template parts and patterns
-------------------------------+------------------------------
 Reporter:  matteomarchiori97  |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Editor             |     Version:  6.0.3
 Severity:  normal             |  Resolution:
 Keywords:  close              |     Focuses:  template
-------------------------------+------------------------------
Changes (by poena):

 * keywords:   => close
 * component:  Themes => Editor


Comment:

 Hi @matteomarchiori97

 It is not perfectly clear to me how to reproduce the issue. I did not
 understand from the description if the problem is with template parts not
 loading inside patterns, or, if it is a problem when changing a block
 theme to a classic theme and back.

 To prevent caching of various Site Editing features, theme developers can
 set {{{WP_DEVELOPMENT_MODE}}} to {{{theme}}}:
 https://make.wordpress.org/core/2023/07/14/configuring-development-mode-
 in-6-3/

 Patterns can not contain truly dynamic content, because as soon as a
 pattern is placed in the content, it is no longer a pattern, just blocks,
 and whatever was generated by the PHP in the pattern is static, saved to
 the database with the rest of the content.


 One way around this, is to use the new block bindings api, but it is only
 a partial solution.
 https://make.wordpress.org/core/2024/03/06/new-feature-the-block-bindings-
 api/


 I suggest closing this ticket because I believe it is a question about
 implementation, rather than a bug.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56847#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list