Hello,
I have website with few user levels settings, and for now access to custom post types or taxonomies is restricted by user level, like free users, paid, vip, lifetime. If anyone without required level tries to access restricted page - it redirects user to payment form.
What I’m working right now is to actually open those restricted pages for even not logged in users, and then restricts content by theme code. I have no problem with theme code, cause I already found s2member functions to determine user’s level and it’s access for this page (if it is restricted), but the problem is that this code won’t work, cause users not allowed to see a page as a whole will be force redirected. I need everyone to be able to see a page, but the content itself will be different for allowed and not allowed users.
Is it possible to still use user levels, and page restrictions for them - while disabling blocking a page for not allowed users? I don’t want to disable s2member for specific pages or even cpt as a whole, cause then I won’t be able to determine by s2member functions if this user is actually allowed to see whole page content. Also I can’t use shortcodes to hide part of the content.
Any hints?