Forum Moderators: coopster
I'm using wordpress and have this piece of code which only shows certain content to users who have edit permissions:
<?php if (current_user_can('edit_post', $post->ID)) { /* BEGIN PROTECTED BLOCK */ ?>
I'd like to edit this so only users who can edit AND if the category isn't 28. I tried adding this snippet in a few different places:
(!is_category(28))
However I kept getting errors.
Anyone know how to do this?
Thanks!