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

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.

Leave a Reply

Your email address will not be published. Required fields are marked *