上QQ阅读APP看书,第一时间看更新
Pros and cons of page templates
The following are the pros and cons of page templates:
- A page template is more stable than a shortcode.
- Generally, page templates are used as layout templates rather than rendering separate components like dynamic forms. The full-width page, two-column page, and left-sidebar page are some common implementations of page templates.
- A template is managed separately from logic, without using PHP variables.
- The page templates depend on the theme and need to be updated on theme switching.