How to disable permalinks to some custom post content?

So, I maintain a site that puts a lot of content in modals that’s pulled from custom post types. The issue I’m running into if someone (like one of our team members) goes to where they think a piece of content should be they get taken to an unstyled page of the content via the content’s permalink. How can I either disable the permalinks or redirect users to the right page?

Read more here:: How to disable permalinks to some custom post content?

Leave a Reply

Your email address will not be published. Required fields are marked *