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

本文标签: