WordPress post_status is future, manually added

Several WordPress core features, such as checking for updates and publishing scheduled post, utilize WP-Cron. The problem is likely you had no visits to your site since the time the post is scheduled to. Scheduling errors could occur if you schedule a task for 2:00PM and no page loads occur until 5:00PM. Source: “What is … Read more

sanitize POST arrays

You can use array_map like this: $room_types = isset( $_POST[‘room_types’] ) ? (array) $_POST[‘room_types’] : array(); $room_types = array_map( ‘esc_attr’, $room_types ); // Replace esc_attr with your desire sanitization

Populate dropdown from database

If that testing_db is your WordPress database, then you should use the WordPress wpdb API/class to interact with the data in your custom table (wp_tmadm_dojangs). So if this is how you do it in “regular PHP”, i.e. using native PHP functions: $sql = mysqli_query($conn, “SELECT dojangName FROM wp_tmadm_dojangs”); while ($row = $sql->fetch_assoc()){ $dojang = $row[‘dojangName’]; … Read more