Hide a Custom Post Type’s Single and Archive Pages in WordPress

WP Beaches ~
You may find that you need to hide a custom post types single or archive pages or even both in WordPress. This may be the case if you are outputting a custom loop of cpts and don’t want duplicate content or discoverable pages which you don’t want published.
View this code snippet on GitHub.
In the above
Leave a Reply