Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

lykkelille on "Change my "If password required" function. STUCK!"

$
0
0

I am desperately trying to change this message: "There is no excerpt because this is a protected post" on the index page into showing the actual password form, WITHOUT having to click into the actual post.

Have been trying for a loong time now, but i seem to do something wrong as as soon as i change something, my whole wordpress page turns blank.

This is what i have:

if ( post_password_required() ) {
return __( 'There is no excerpt because this is a protected post.' );
}

return apply_filters( 'get_the_excerpt', $post->post_excerpt );
}

And i want this text to turn into SHOWING THE PASSWORD FORM.

Been trying for 2 days now. I am totally stuck :(


Viewing all articles
Browse latest Browse all 8245

Trending Articles