Forums

HIde Post/Content (8 posts)

  1. 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

  2. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    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');
  3. 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

  4. 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...

  5. 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.

  6. 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/

  7. virtualgina
    Member
    Posted 2 years ago #

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

  8. 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.

Topic Closed

This topic has been closed to new replies.

About this Topic