Restrict Content based on User Role
-
I can’t find anyone to help with this problem. Please, I’d love some help!
Background:
– Our site is hosted in Flywheel
– We are using the Divi theme (paid theme)
– We are using the Memberpress membership plugin (paid plugin)Problem
– The memberpress theme allows me to restrict (show/hide) content based on if someone is a member or not using shortcodes. Here is a list of the possible shortcodes: https://docs.memberpress.com/article/112-available-shortcodes. I can do this based on if they’re logged in or rules I set up for each level of membership. However, I can only use these shortcodes in a text module. I can’t use them if I create button, image, blog, or any other module.
– I’d like to customize the homepage based on if a user is logged in or not. For example, if they are logged in, they will see restricted content and links to member only pages. If they are not logged in, there will be information about the membership and a button to “join now.”
– I don’t need to use the memberpress shortcodes if there is a way to code this based on the user role in wordpress. Also, for clarification, I can easily restrict pages or posts based on membership with memberpress but I’m not able to show/hide specific elements on a page.Thank you for any help with this!
The topic ‘Restrict Content based on User Role’ is closed to new replies.