Plugin not working when I modify the Password page
-
Hi Cyril,
Thanks again for your great work.
I am trying to modify the password form by adding the following function to my functions.phpadd_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-pass.php" method="post"><h3> ' . __( "If you do not have a password, please fill in form below</br> or call <b>781-772-2539</b> for assistance." ) . '</h3> <label class="pass-label" for="' . $label . '">' . __( "PASSWORD:" ) . ' </label> <input name="post_password" id="' . $label . '" type="password" style="background: #ffffff; border:1px solid #999; color:#333333; padding:10px; " size="14" /><input type="submit" name="Submit" class="button" style="margin-left: 10px;" value="' . esc_attr__( "Submit" ) . '" /> </form> '; return $o; }
[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
when I add this none of the passwords work. Any ideas?
Thanks so much.
by the way, I tried to make a donation but there is no donate button.
Mary-Ellen
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Plugin not working when I modify the Password page’ is closed to new replies.