function the_post_password() {}

Display the post password.
The password is passed through esc_attr() to ensure that it is safe for placing in an html attribute.

Source code

function the_post_password() {

	global $post;

	if ( isset( $post->post_password ) ) echo esc_attr( $post->post_password );



No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: