• Hi,

    I noticed a bunch of “_wp_page_template” entries in my wp_postmeta table. Does anyone know what those records are?

    Thanks

    -E

Viewing 3 replies - 1 through 3 (of 3 total)
  • They are the Page template assigned to a Page (As in Write > Write Page, Page Template listing).

    Thread Starter edekel

    (@edekel)

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘_wp_page_template entries in wp_postmeta table…’ is closed to new replies.