Password Protection Page not redirecting properly in Safari or IE
-
https://forestvilleproductions.com/#Projects
In Safari and IE, after it verifies the password, it redirects to the homepage. In Chrome and Firefox, it redirects correctly back to the link above. Any help would be appreciated.
here’s my code from functions.php file:
// Custom password protected message / form
add_filter( 'the_password_form', 'custom_password_form' );
function custom_password_form() {
global $post;
$label = 'pwbox-'.( empty( $post->ID ) ? rand() : $post->ID );
$o = '<form class="protected-post-form" action="' . get_option('siteurl') . '/wp-login.php?action=postpass#Projects" method="post">
' . __( "<h2>Enter Password</h2>" ) . '
<label for="' . $label . '">' . __( "Password:" ) . ' </label><input name="post_password" id="' . $label . '" type="password" size="20" /><input type="submit" class="submit" name="Submit" value="' . esc_attr__( "Submit" ) . '" /> </form>
<h3 style="width:600px;margin-top:30px;text-align:center;">Video Sample</h3><iframe src="https://player.vimeo.com/video/88013014" width="600" height="400" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
';
return $o;
}
- The topic ‘Password Protection Page not redirecting properly in Safari or IE’ is closed to new replies.