After an WP_insert_posts array has been executed how do I then redirect the browser to that post.
Stack Exchange network consists of 181 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.Visit Stack Exchange
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.Sign up to join this community
Try the following:
$post_id = wp_insert_post( array( 'your', 'args', 'here' ) ); $link = get_permalink( $post_id ); wp_redirect( $link ); die();