Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
After an WP_insert_posts array has been executed how do I then redirect the browser to that post.
Try the following:
$post_id = wp_insert_post( array( 'your', 'args', 'here' ) );
$link = get_permalink( $post_id );
wp_redirect( $link );
Required, but never shown