This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Blocking Page from Public View

  • Creator
    Topic
  • #25245
    lizonbc
    Member

    Hi Jason,

    Can you tell me if it’s possible to block a page from public view? What I mean is, to be able to block it from everyone accept those who are registered and logged in.

    Thanks,

    Liz

Viewing 6 replies - 1 through 6 (of 6 total)
  • Author
    Replies
  • #25251
    Jason Bobich
    Keymaster

    Hi Liz,

    Again, this won’t really have anything to do with the theme, but this is a fairly popular thing if you search around. You can probably find some free plugins that do that if you search for terms like, “restrict content.”

    I’ve never personally used it, but the one I’ve heard the most about is Restrict Content Pro. It’ll allow you to handle signing people up, and selling access to certain pages, or whatever. Or, you can use it to simply restrict content through other criteria.

    http://restrictcontentpro.com/

    #25252
    lizonbc
    Member

    Thanks, Jason.

    I did go to restrictcontentpro since I started this topic. I guess I thought the plugin was just for members of the website. I didn’t realize that it could also block certain pages from public view. And it did.

    HOWEVER, it seems to only block pages and posts, NOT the dashboard (the general page that Shows “Activity” and “WordPress News”) or the profile page. That’s right. My client doesn’t want his members to have access to the profile page.

    Liz

    #25254
    Jason Bobich
    Keymaster

    I actually wrote about this awhile back:

    http://www.jasonbobich.com/wordpress/hiding-the-wordpress-admin-panel-to-your-subscribers/

    And I’m sure if you search you can find more info or probably even a plugin for it. I would imagine you’re not the only one wanting to do this.

    https://wordpress.org/plugins/search.php?q=hide+wordpress+admin

    #25255
    lizonbc
    Member

    So, if I’m understanding this correctly, I just replace ‘edit_posts’ with ‘subscribers’. Correct?

    #25257
    Jason Bobich
    Keymaster

    No, you wouldn’t change anything. The code is saying if the person CANNOT edit_posts, then don’t allow access; this would include subscribers. The exclamation point ! means NOT in coding.

    #25266
    lizonbc
    Member

    Again, THANK YOU for everything you do here to help us please our clients.

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.