How to protect one page only on WordPress menu?

Discussion in 'Setting-up protection' started by bootlegtracks, Dec 7, 2008.

  1. bootlegtracks

    bootlegtracks New Member

    Joined:
    Nov 12, 2008
    Messages:
    5
    I am using WordPress 2.6.2. I installed the WordPress plugin. All I want to do is to protect one page on the main menu. This is a page, not a post. When someone clicks that menu item, I want it to take them to a login/signup page. Once they are logged in, I want it to redirect them back to that members only page. My trial is almost over, so I'd really like to get this working ASAP so I'll know if I should purchase it or not.

    How can I do this?

    Thanks!
    Deauxmain
  2. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    Theres two ways to go about this.
    1) using php_include protection the the wordpress file and specify to use it when that specific page is viewed. This will bring them to the amember login page if they are not logged in.

    2) use the hidepost plugin to protect the content, this will display a "you must be logged in to view" and give them a login and signup link.
    This is the method i teach on my site, its much simpler to implement.

    David
  3. bootlegtracks

    bootlegtracks New Member

    Joined:
    Nov 12, 2008
    Messages:
    5
    David,

    Thanks for the reply. I'm trying to use method # 2 that you described. I see it used on your Demo site, and it appears to work exactly like I need it to. If I subscribe to your membership academy, can I quickly learn how to do this? I really need to get this up and running today for my client.

    Thanks,
    Deauxmain
  4. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    Yes, I have a video tutorial on how to set this up. (please do not skip any of the steps- they are all important!)


    David

    PS- you should update the wordpress to 2.6.5 it fixes some security holes.
  5. jmhagerman

    jmhagerman New Member

    Joined:
    Jan 11, 2009
    Messages:
    3
    David,

    How would one go about setting the criteria for this? I understand that it has to be defined in the part of the code that defines the array but am not sure what the required components in that definition would be.

    Any help would be much appreciated.

    James

Share This Page