Give visitor access to password protected page/post via external script
Finally, I found the solution: form.php <form action=”<?php echo bloginfo(‘template_directory’); ?>/pp-redirect.php” method=”post”> Event: <input name=”event” type=”text” size=”25″ /><br /> Passwort: <input name=”post_password” type=”password” size=”25″ /><br /> <input name=”submit” type=”submit” value=”Los” /> </form> pp-redirect.php <?php /** Make sure that the WordPress bootstrap has run before continuing. */ require( dirname(__FILE__) . ‘./../../../wp-load.php’); global $wp_hasher; if ( empty( … Read more