WordPress – Remove category from posts list and widget

The following code will help you remove a category from being displayed in your WordPress website: