This works, but I have to click on submit 2 times to save the post.
<?php
/*
Title: New Blog Post
Method: post
Message: Your blog post has been successfully saved.
Logged in: true
*/
piklist('field', array(
'type' => 'text'
,'scope' => 'post' // post_title is in the wp_posts table, so scope is: post
,'field' => 'post_title'
,'label' => __('Title', 'piklist-demo')
,'attributes' => array(
'wrapper_class' => 'post_title'
,'style' => 'width: 100%'
)
));
// Submit button
piklist('field', array(
'type' => 'submit'
,'field' => 'submit'
,'value' => 'Submit'
));