• 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

Viewing 7 replies - 1 through 7 (of 7 total)
  • 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');

    Theres a plugin called Hidepost (ironically named), but I think you need aMember in order for it to work properly…

    Matt

    You just put brackets around your protected content like this:

    [hidepost]

    Look everyone, here is my protected content!

    [/hidepost]

    Pretty simple…

    Thread Starter tony-stark

    (@tony-stark)

    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.

    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/

    are these pages indexed and can be found by search engines?

    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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘HIde Post/Content’ is closed to new replies.