• Resolved roffalf

    (@roffalf)


    Hello again,

    if the form is used on a password protected page, the confirmation redirect doesn’t work. If I remove the protection, the redirect works just fine. Is there a way to redirect to success page on password protected pages?

    Thanks again!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter roffalf

    (@roffalf)

    … oh, and it wont display the confirmation message or send anymore either.
    The Form is displaying correctly after the Password is entered, but it wont send or redirect to the confirmation page.

    here’s the code example:

    <?php
    
    global $post;
    get_header();
    
        if ( ! post_password_required( $post ) ) { ?>
    
            <section class="section-form">
    
                        <div class="frame frame-formcontent">
    
                            <?php
                                $args = array(
    
                                    'submit_text' => 'Auftrag absenden',
                                    'display' => array(
                                        'success_message' => 'Vielen dank, Ihre Nachricht wurde erfolgreich übermittelt.',
                                    )
                                );
                                advanced_form( 'form_5e6228c23rf28', $args );
                            ?>
    
                        </div>
                    </section>
    
            <?php }else{ ?>
                <section class="section-form">
                    <div class="frame frame-formcontent">
                        <?php echo get_the_password_form(); ?>
                        </div>
                </section>
            <?php
    
        }
    ?>
    Thread Starter roffalf

    (@roffalf)

    Oh man, sorry for that…

    turns out it was global $post, without it it’s working.

    Thread Starter roffalf

    (@roffalf)

    …resolved (sorry, I’m new here)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Password Protected Pages – Redirect to confirmation page not working’ is closed to new replies.