• Resolved gokberktalu

    (@gokberktalu)


    Hi,

    I’m pretty new to conditional logic. I have two membership roles, basic and gold. I would like to show only certain blocks to gold members but I couldn’t find the conditional tag to show it correctly. Could you tell me the tag for user roles please?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author landwire

    (@landwire)

    Sorry, I have only seen this now!
    Well, it sounds like you are using some form of plugin. Therefore you will need to look into the documentation of the plugin that you are using for the member roles. Find the function that checks for the member status and returns true or false.

    Lets say it’s called “current_user_has_member_status(‘gold’)”. You would then use it just like this “current_user_has_member_status(‘gold’)” inside the Block Logic field.

    You can go as complex as you like with your PHP, just make sure it is valid and does not throw any errors.

    • This reply was modified 4 years, 2 months ago by landwire.
    Plugin Author landwire

    (@landwire)

    Seems that as a plugin author you have to subscribe to your own wordpress support forum. Well, I thought that would happen automatically!

    Plugin Author landwire

    (@landwire)

    I hope my answer was helpful.
    As this has been lying stale for the last months, I am closing this now.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Logic for hiding/showing content to certain member role?’ is closed to new replies.