Support » How-To and Troubleshooting » _wp_page_template entries in wp_postmeta table…
10 years, 6 months ago
I noticed a bunch of “_wp_page_template” entries in my wp_postmeta table. Does anyone know what those records are?
They are the Page template assigned to a Page (As in Write > Write Page, Page Template listing).
Thanks for the reponse. So every page created will have an entry in the db even if it using the default page.php template?
Yes. They’ll get the value of ‘default.’
Now I’m not positive of the absolute, um, value of doing it that way, as WordPress could have easily verified the default by finding no postmeta entry for it. But I’m sure the devs had their reasons.
EDIT: Actually, there is one reason which sticks out to me now that I think about it, and that is a SQL query which hits the record it’s looking for will often complete faster than one which doesn’t.