Title: Post Status
Last modified: August 21, 2016

---

# Post Status

 *  Resolved [Jacob Roman](https://wordpress.org/support/users/jcbrmn06/)
 * (@jcbrmn06)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/post-status-2/)
 * Hello,
 * I am using the premium of the Supra CSV plugin. Every time I try to set the post
   to published and set the date, it never works. I even exorted a CSV of content
   that i changed in WordPress. I uploaded that same CSV with post_status and post_date
   and I still uploads as pending. Anyone know the right way to tell the post to
   be published in the CSV file under the post_status column. and the date always
   sets to 1970/01/01. So is there a certain way the date is suppose to be set up
   as well?
 * [http://wordpress.org/plugins/supra-csv-parser/](http://wordpress.org/plugins/supra-csv-parser/)
 * [https://wordpress.org/plugins/supra-csv-parser/](https://wordpress.org/plugins/supra-csv-parser/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [Jacob Roman](https://wordpress.org/support/users/jcbrmn06/)
 * (@jcbrmn06)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/post-status-2/#post-4629226)
 * I got the date, worked out, but i cant seem to find the right wording for controlling
   the post_status. published, publish, or trash dont seem to effect anything. I
   switch auto publish off. any suggestions?
 *  Thread Starter [Jacob Roman](https://wordpress.org/support/users/jcbrmn06/)
 * (@jcbrmn06)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/post-status-2/#post-4629379)
 * Got it.
 * Change:
 *     ```
       if($post['publish'] && empty($content['post_status'])) {
                   $content['post_status'] = 'publish';
   
               }
               else {
                   $content['post_status'] = 'pending';
               }
       ```
   
 * To:
 *     ```
       if($content['post_status'] == 'publish' ) {
                   $content['post_status'] = 'publish';
   
               }
               else {
                   $content['post_status'] = 'pending';
               }
       ```
   
 *  Plugin Author [Joseph Persie](https://wordpress.org/support/users/zmijevik/)
 * (@zmijevik)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/post-status-2/#post-4629463)
 * Thanks, this issue should be resolved in the latest version of the plugin

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Post Status’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/supra-csv-parser_c8cece.svg)
 * [Supra CSV](https://wordpress.org/plugins/supra-csv-parser/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/supra-csv-parser/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/supra-csv-parser/)
 * [Active Topics](https://wordpress.org/support/plugin/supra-csv-parser/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/supra-csv-parser/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/supra-csv-parser/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Joseph Persie](https://wordpress.org/support/users/zmijevik/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/post-status-2/#post-4629463)
 * Status: resolved