• Hi – I’m new to wordpress, but hope to accomplish this:

    I would like to have a page called “login/member” which has a lot of sub pages. (each subpage contains a offer from a vendor)

    On the “login/member” page there should be some text and a username/password box – once the user logs in corect (with a “global” login) it should redirect to the login/member page itself but change mode to “logged in” and then displaying a link list of all the subpages so the user can see the individual offer from the vendor – all the subpages shall not be viewable unless logged in…

    how do I accomplish this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • You will need to do a few things to accomplish this.

    1. Allow registrations. You can do this via WP as is, but there are a dozen great plugins for managing membership areas so a user never sees the WP admin panels as a subscriber.

    Once a user is logged in, their browser has a cookie and they are known on all pages as indeed being logged in, you just need to leverage that cookie for the menu / content.

    Some basic PHP can be used to show / hide content based on the user being logged in.

    <?php if (is_user_logged_in()) : ?>
    	 Hey the user is logged in, display the logged in only content here. Like your menu
      <?php else : ?>
      	NOT Logged in. Either do nothing, or offer a login / register call to action
      <?php endif; ?>
    Thread Starter Tinker2013

    (@tinker2013)

    Hi matt

    found a plug-in that almost does it… it’s the WP-Members – here I can block individual pages ….only problem is that I can’t display status of login other that in the sidebar – and I only want to have this on the page…not the sidebar…. and it cost $49 to get the shortcodes…and that’s not an option…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Member area’ is closed to new replies.