admin管理员组文章数量:1332383
I am building a custom theme from a previous html site I built. Some pages I have set up using advanced custom fields so the client can change parts of those pages. I set those up using page-{slug}.php. I have other pages that won't change at all, also using page-{slug} for these.....is it ok to just put all the code and content in the php template? Since if there are any changes, I will be the one handling them.
Also, this theme will never be redistributed so won't need to work on another theme.
Thanks for the help...
I am building a custom theme from a previous html site I built. Some pages I have set up using advanced custom fields so the client can change parts of those pages. I set those up using page-{slug}.php. I have other pages that won't change at all, also using page-{slug} for these.....is it ok to just put all the code and content in the php template? Since if there are any changes, I will be the one handling them.
Also, this theme will never be redistributed so won't need to work on another theme.
Thanks for the help...
Share Improve this question asked Jul 3, 2020 at 15:51 user55555user55555 111 silver badge4 bronze badges1 Answer
Reset to default 0Yes, it's fine to do that. Wordpress doesn't care if the loop or any of the other content-related PHP in the theme file is there or runs, but you should leave get_header()
and get_footer()
本文标签:
版权声明:本文标题:theme development - Custom pages with html in wordpress editor vs. writing it all directly in the php template files? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742294148a2448381.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论