"Journal entry $i", 'post_content' => "
Training article $i
", 'post_status' => 'publish', 'post_author' => 1, ], true); if (is_wp_error($id)) { throw new RuntimeException($id->get_error_message()); } if ($i === 1) { echo $id, PHP_EOL; } } } else { require 'index.php'; }