I love you guys, you always help with my problems!
I promise that once my website is done and I'm more experienced I will help others too.
So, I have a custom post type called "kurs". (translates to class)
Every Parent kurs is visible for everybody, this is where the buy button will be.
The kurs will have childpages that are restricted to s2member Level 1 and also a custom capability.
I list the childpages in the sidebar.
I managed to show this sidebar only if you are logged in... BUT...
I want this sidebar (or the childpages) to only be visible if you paid for this custom capability...
And I don't want to write the name of the custom capability in the code, it shouldn't matter what cc is used.
I figured, maybe I should use "is_permitted_by_s2member" in some way, but I couldn't get it to work...
Can anyone help me with this one?
Thanks
/Malin