• Resolved Jacob Roman

    (@jcbrmn06)


    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/

    https://wordpress.org/plugins/supra-csv-parser/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Jacob Roman

    (@jcbrmn06)

    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

    (@jcbrmn06)

    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

    (@zmijevik)

    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.