theme development - Custom pages with html in wordpress editor vs. writing it all directly in the php template files?

I am building a custom theme from a previous html site I built.Some pages I have set up using advanced custom fields s

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 badges
Add a comment  | 

1 Answer 1

Reset to default 0

Yes, 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()

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742294149a4416773.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信