Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Have used emember in the past and looked at Tadlock's membership as well as another premium offering by jigowatt. However, I don't want to just hide the post's content.... I want to hide the entire post... and entire categories/taxonomies.

I'd like the menu to show "Products" and when you visit that particular page you are prompted to log in to view it. Logging it would also "unlock"/reveal sections of the site that weren't previously visible. For instance, the menu might now have widgets and gizmos underneath the main "products".

to me this seems different than what the plugins i mentioned before can handle. is there a plugin that does this or am i looking at creating my own?

share|improve this question

2 Answers 2

up vote 0 down vote accepted

The best way to have complete control is to use conditionals in your templates. Look at current_user_can() for specific permissions - or if its simply for being logged in you could use is_user_logged_in(). eg:

if( is_user_logged_in() ){
   // echo product details
}else{
   //echo login form and message
}

That we you have complete control over what is displayed to whom.

share|improve this answer
    
kind of the "roll your own" solution i was thinking i'd need –  helgatheviking Nov 9 '11 at 0:19
    
Yeah, or you can take a mixed approach. What I've done in the past is use a plugin to manage payments and subscriptions and then use your own code to protect content. That way you can setup conditions to display different sidebars, different menus, different content etc. to logged in or guest users. –  patnz Nov 9 '11 at 0:29

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.