Set post template

Support General Set post template

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #7748
    jcleavelandjcleaveland
    Participant

    Hi,

    I am trying to use a hidden field to set the post template.

    I am using:

     
    array(
      'id'   => '_wp_page_template',
      'type' => 'hidden',
      'std'  => 'determination.php',
    ),
    

    at the end of a series of other fields with no luck.

    Is there anyway to do this with in the context of the metabox without creating a new function?

    #7749
    jcleavelandjcleaveland
    Participant

    Well... Another case of misplaced closing parenthesis.

    I had the array saved one level too deep in the fields array. It was placed at the bottom of a group array before the field ID was declared.

    Please close this one.

    Thanks!

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Set post template’ is closed to new replies.