• Resolved oldcode

    (@coconutcoder)


    I’m writing an “add-on” that can add a newly registered user to the default list with the press of a button. What I need is to programmatically get the default template id so I can assign the $data[‘tplateID’] that value.

    I don’t see a special table with that value, so I guess it would be in the post or post_meta table?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author abcfolio

    (@abcfolio)

    WP table posts WHERE post_type = cpt_staff_lst

    Thread Starter oldcode

    (@coconutcoder)

    Ok, in my postmeta table I have two templates where meta_key=’_pImgDefault’ AND meta_value=1. How can I have two default templates?

    Thread Starter oldcode

    (@coconutcoder)

    Ok, I guess pImgDefault is the default image, not the default template. What I’m looking for is the key that says that a certain template is the default template.

    Plugin Author abcfolio

    (@abcfolio)

    Staff List has no default template. All templates are the custom ones.
    You have to provide Staff Template ID for 'post_parent' when inserting a Staff List Member record.
    You can use the template name to get the template ID if you wish.

    • This reply was modified 5 years, 11 months ago by abcfolio.
    Plugin Author abcfolio

    (@abcfolio)

    Closed due to inactivity.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Where is the default template found in the database?’ is closed to new replies.