4

Where is the custom template file that has been selected through the wordpress edit screen (for a post or page) stored in the wordpress database?

1 Answer 1

7

It's in the post meta table (usually wp_postmeta), with the page id in post_id, meta_key with _wp_page_template and meta_value with the template file name.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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