Support

Account

Home Forums ACF PRO Redirect Form to variable External URL Reply To: Redirect Form to variable External URL

  • Make sure that the post type is correct, I was going by your wp_form() code

    
    
    				'new_post'     => array(
    					'post_type'   => 'post_type_listings',
    					'post_status' => 'pending',
    					),
    

    I don’t see any reason why the redirect is not working

    Honestly, the if statement shouldn’t even be needed because none of the redirects should do anything unless this is true

    
    if ( have_rows( 'listing_payment_options', $post_id ) ) :
    

    and this should only be true on the correct post type the only thing you should really need to check is is_admin()

    This should not help because you have the action in the theme, but you could try increasing the priority to > 10

    
    add_filter('acf/save_post', 'stripe_payment_redirect', 20);