How to make a custom template in WordPress work as a password protected page?
Posted
by KaOSoFt
on Stack Overflow
See other posts from Stack Overflow
or by KaOSoFt
Published on 2010-06-16T14:33:19Z
Indexed on
2010/06/17
13:43 UTC
Read the original article
Hit count: 170
I'm building a page with a custom template.
The thing is, I need this page to be password protected, or at least accessible to logged in users, but even if I set it as such (Private/Password protected) in the New Pages section in WordPress Administration, it won't display the menu entry nor the content (if Private) or it would show the page contents immediately (if Password protected).
I've read somewhere that the_content() function is what makes this work, but as you can guess, my custom template doesn't use the_content() at all, and it's all based on custom content.
Do you happen to know how can I (re)implement these two options?
© Stack Overflow or respective owner