The best use of Patterns

[ad_1]

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]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer