WordPress.org

Ready to get started?Download WordPress

Forums

_wp_page_template entries in wp_postmeta table... (4 posts)

  1. edekel
    Member
    Posted 8 years ago #

    Hi,

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

    Thanks

    -E

  2. Kafkaesqui

    Posted 8 years ago #

    They are the Page template assigned to a Page (As in Write > Write Page, Page Template listing).

  3. edekel
    Member
    Posted 8 years ago #

    Thanks for the reponse. So every page created will have an entry in the db even if it using the default page.php template?

  4. Kafkaesqui

    Posted 8 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic