Not working CF7 & hidden fields module or plaintext
-
no matter what always defaults to post_status Publish and post_category Uncategorized
example cf7:
Post Title [text* post_title] <br/> Post Content (required) <br/> [textarea* post_content] <br/> [hidden hidden-357 id:post_category_name "testimonial"] [post_status "draft"] [submit "Post"] <br/>
unless I change code in FormToPost_Plugin.php
`$post = array(
‘post_status’ => ‘publish’,
‘post_type’ => ‘post’,
‘post_category’ => array(0)
);`
To:$post = array( 'post_status' => 'draft', 'post_type' => 'post', 'post_category' => array(2) );
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Not working CF7 & hidden fields module or plaintext’ is closed to new replies.