How to create fully reusable layout page template in wordpress? -
for pages, wordpress give default page template : page.php. that's clear , simple, default pages use template. then, wordpress give page template system, , when speak template think reusable think page layout template. example : full-width, page-width, sidebar-left... specifie template use each page, it's ok.
but when begin work on more complex web site, content not simple post (page type) inside page template anymore. reason or have use feature of wordpress : page-slug.php. before, of course can try shortcode develop, include specific plugins complex page etc 1 day, have no choice use page-slug.php.
here comes problem : content "more specific , complex" still need use layout template, , can't... of course, hate duplicated code don't want "copy" template inside.
if want specific page, use page-slug.php without page template , job. then...
why wordpress don't consider page-slug.php pure content when (and when) page template specified ?
am missing ?
thanks
Comments
Post a Comment