I need to stop 'contributors' from editing the standard post type, but I want to allow them to edit a custom post type. My code so far:
remove_cap( 'contributor', 'edit_posts' );
UPDATE: Why the above answer isn't useful to me. I am looking for a coding solution not a plugin recommendation. I am also using a standard role 'contributor' not creating my own role. Thanks!