Change my "If password required" function. STUCK!
-
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 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘Change my "If password required" function. STUCK!’ is closed to new replies.