Styling my own password protected page, how to deal with wrong password?

This worked for me adding this code in functions.php: add_filter( ‘the_password_form’, ‘wpse_71284_custom_post_password_msg’ ); /** Add a message to the password form. @wp-hook the_password_form @param string $form @return string */ function wpse_71284_custom_post_password_msg( $form ) { // No cookie, the user has not sent anything until now. if ( ! isset ( $COOKIE[ ‘wp-postpass‘ . COOKIEHASH ] … Read more

do_shortcode with custom field

Nice one, you were practically there – the key is to assign the $ecpt_imdb variable with the data returned from get_post_meta: <?php if ( $ecpt_imdb = get_post_meta( get_the_ID(), ‘ecpt_imdb’, true ) ) : ?> <h3>About the Movie</h3> <?php echo do_shortcode( ‘[imdb]http://www.imdb.com/title/’ . $ecpt_imdb . ‘/[/imdb]’ ) ?> <?php endif ?> You’ll see I’ve also used … Read more