I was using default wordpress 2022 theme and created few post & page templates from Appearance -> Editor -> Templates. These templates are lost when I switched to a child theme. Is it possible to copy those post/page templates from default 2022 theme to a child theme? If yes how?

  • while you could copy paste, I'd consider this noteworthy enough to report an issue with WordPress itself, my expectation was that child themes would inherit their parent themes templates, wether they were in the database or not
    – Tom J Nowell
    Feb 8, 2022 at 16:28
  • Yes that's what I thought. I copied template files into my child theme but it doesn't show me the template which I create in parent theme.
    – Raymond
    Feb 8, 2022 at 18:17

1 Answer 1


If you used the wordpress code editor, it means you modified the actual files. You need to connect to your cpanel > file editor ( or via ftp ) > wp-content > themes / wordpress 2022 and find the files. Copy them to your child theme folder.

If you updated the "wordpress 2022" theme, these are likely gone. This is why is important to use "child" themes, so your modifications do not get overwritten on an update.

  • Sorry that doesn't work. I've copied all templates and parts files from parent theme to child theme but it doesn't show me my custom template. Also this copy is not required because by child template should pick up parent's template, I'm not sure though. Not sure if templates are saved in file or in database?
    – Raymond
    Feb 9, 2022 at 11:13
  • I found out that the way to export is to use Export option on template editor but that gives me error Zip export not supported.
    – Raymond
    Feb 9, 2022 at 11:15
  • are you doing this through your host's cpanel or are you doing this through the wordpress dashboard?? Feb 16, 2022 at 5:40
  • WP dashboard export gives error. File copy via FTP. I think this copy doesn't work in 2022. Stuff are saved in db and not in files.
    – Raymond
    Feb 16, 2022 at 16:47

Your Answer

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

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