I am trying to limit what content the subscribers can see but nothing I do seems to work. I have spent hours trawling the web and through the wordpress code, all to no avail. Does anyone know how I would be able to go about this?
Ideally the code structure would look like:
if(get_role() = 'subscriber'){
redirect
}
Thanks
Incidentally i have tried get_role($role) and that doesn't work for me.