• Hi,

    I am trying to redirect back to the add post form which I have included in a buddypress members profile page.

    I have managed to get it to redirect back to the correct page but instead of the form fields being displayed, its displaying a printout of the array that has just been submitted and the post published successfully message anyone know how I can fix this.

    The redirect function in my functions.php is

    ‘function custom_redirect() {
    $author_bp_profile = bp_core_get_user_domain( $user_id ). ‘/manage-projects/’;
    return get_permalink( $author_bp_profile );
    }
    add_filter( ‘wpuf_after_post_redirect’, ‘custom_redirect’ );’

    Cheers Tkhan

    https://wordpress.org/plugins/wp-user-frontend/

  • The topic ‘another redirect problem’ is closed to new replies.