I have 2 custom capabilities in my site.
One is batch1 and the other is batch 2.
I put in batch,batch2 under “Require Custom Caapabilities?” on the right side
However, the batch 2 people are unable to access the content and only the batch 1 can.
Here is how it looks: https://1drv.ms/i/s!AlgVtmIFpxSWjmWo-dQzDnDVMbJl
I also tried going the shortcode route, putting this in:
[s2If current_user_can(access_s2member_ccap_batch1)]
Hello [s2Get constant=“S2MEMBER_CURRENT_USER_DISPLAY_NAME” /]. You are on batch1.
[else]
[_s2If current_user_can(access_s2member_ccap_batch2)]
Hello [s2Get constant=“S2MEMBER_CURRENT_USER_DISPLAY_NAME” /]. You are on batch2.
[/_s2If]
[/s2If]
But it’s still not working.
Please help!