wp_insert_post
-
HI All,
i am using wp_insert_post() in which i am setting post_status=’future’
but it is not working. it inserts the value publish in database not future. here is my code$post_insert=array( 'post_author'=>$author, 'post_date'=>$date, 'post_date_gmt'=>$date1, 'post_content'=>$content, 'post_title'=>$title, 'post_excerpt'=>$excerpt, 'post_status'=>'future'); wp_insert_post($post_insert);
any one help please
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘wp_insert_post’ is closed to new replies.