Tony Stark
Member
Posted 2 years ago #
Hi All!
I need to create a post or page which is either a) hidden from view or b) password protected.
While I know that you can use Password Protection natively - can you actually edit that text?
I want to be able to create a page which we can send people to with a password so they can download hidden / protected content!
Thanks
Tony
I'm sure there's a plugin out there that will let you edit the password-protected text but I simply re-wrote the function within the theme's functions.php file:
function change_protected_text($content) {
$content = str_replace(
'This post is password protected. To view it please enter your password below:',
'This is a subscriber-only page. Please enter this month’s password below:',
$content);
return $content;
}
add_filter('the_content','change_protected_text');
kingmattj
Member
Posted 2 years ago #
Theres a plugin called Hidepost (ironically named), but I think you need aMember in order for it to work properly...
Matt
kingmattj
Member
Posted 2 years ago #
You just put brackets around your protected content like this:
[hidepost]
Look everyone, here is my protected content!
[/hidepost]
Pretty simple...
Tony Stark
Member
Posted 2 years ago #
Forget it, realised you need the plugin for that to work. Doesnt do exactly what I need though. i.e. I wanted a post to be viewable (by URL) just not visible in the posts on the site.
sharris203
Member
Posted 2 years ago #
Use the exclude pages plugin. No one will know the page exists but it can still be accessed.
http://wordpress.org/extend/plugins/exclude-pages/
virtualgina
Member
Posted 2 years ago #
are these pages indexed and can be found by search engines?
sharris203
Member
Posted 2 years ago #
With the Exclude Pages plugin, you can also password protect the pages. I think they may get search indexed (the search box built into the website will find it too), but you can also get another plugin to stop indexing of those pages.