Viewing 1 replies (of 1 total)
  • Thread Starter dacrosby

    (@dacrosby)

    I figured out a hard-code fix to do exactly this, if anyone’s interested. Open wordpress-dir/plugins/csv-importer/csv_importer.php and check about line 260. Change the 'post_status' to convert_chars($data['csv_post_status']).

    $new_post = array(
                'post_title'   => convert_chars($data['csv_post_title']),
                'post_content' => wpautop(convert_chars($data['csv_post_post'])),
             // 'post_status'  => $opt_draft,
                'post_status'  => convert_chars($data['csv_post_status']),
                [ ... ]

    Then in your csv file, just add a column for csv_post_status. You can now import posts as publish, trash, draft, etc.

Viewing 1 replies (of 1 total)

The topic ‘[Feature Request] Abiity to set more Post Statuses’ is closed to new replies.