I’m new to modern WordPress themes. I’m more familiar with the classical approach. That’s the context of my questions.
WP describes Patterns as, “a collection of blocks arranged together into an thoughtful, intentional, opinionated section for a page of post.”
However, I realized that I could implement regular php into patterns and then load them into template pages. For example
* I have an index.html that loads a hero.php through markup: <!– wp:pattern {“slug”:”hero”} /–>
* Hero.php contains some “classical” php approach. No blocks.
Since this goes against WP’s description of patterns, will this cause problems? Will this lead to problems with future-proofing?
Thanks.
[ad_2]