Resctrict Content Based on Custom Field and Level
-
I need to restrict content based on a custom field that I created called HOA. I also have two different user levels. I need to limit certain information based on user levels. In some cases, level 1 and 2 can view the information. In other cases, only level 2 can view the information. Below is the code that I am using. It works for me if I just have it restrict with the HOA field. As soon as I add in the user levels, it does not show anything.
[restricted no_message=’Yes’ block_logged_in=’No’ field_name=’HOA’ field_value=’coursey1′ level=’2′]Coursey test[/restricted]
[restricted no_message=’Yes’ block_logged_in=’No’ field_name=’HOA’ field_value=’coursey1′ minimum_level=’1′ maximum_level=’2′]Coursey test 2[/restricted]
- The topic ‘Resctrict Content Based on Custom Field and Level’ is closed to new replies.