Hi,
I noticed a bunch of "_wp_page_template" entries in my wp_postmeta table. Does anyone know what those records are?
Thanks
-E
Hi,
I noticed a bunch of "_wp_page_template" entries in my wp_postmeta table. Does anyone know what those records are?
Thanks
-E
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.
This topic has been closed to new replies.