Problem With Custom Capability

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!

Stupid question, but are you sure you’ve entered “batch2” exactly the same in the shortcode for the form/button selling that CCAP and on the page restrictions?

If “batch1” is working and “batch2” is not, that’s the most likely problem.

1 Like