Code snippets to restrict authors and contributors of multi-author WordPress websites. The first piece of code prevents them from seeing content assigned to other users. The second ensures that users can only see post counts of their own content.
Do you have guest writers on your WordPress site? If so, they’re most likely set to the contributor role. The problem with the default contributor role however, is that it does not allow the contributors to upload images or any other kind of media. This means they would have to write text only articles or contact you first if they must use images. This article discusses two ways you can get around this limitation without needing to promote the contributors to higher privileges.