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...

1 Answer 1


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

  • Yes of course get header and footer would stay. For example I would use page-about for about page. Run the loop if necessary.... and put all the content divs and html in that file. Instead of putting html into the Wordpress editor. Does this sound ok?
    – user55555
    Jul 3, 2020 at 18:48
  • @user55555 yep fine! always fine to try these things also and see what happens
    – mozboz
    Jul 4, 2020 at 16:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.