I have produced new organizations that act like posts that are displayed via my custom pages. After I create this practice entity I additionally create new publish and fix publish ID to custom entity, in order to publish comments to my custom entity.

I open page with my custom entity and surveys are displayed too, and things are great, with the exception that if in browser I type the permalink with this underlying publish I produced the wordpress will open the publish page, which I'd rather not be shown whatsoever. How do i hide publish pages which i create? Notice, these underlying posts could be of 1 single category.


In single.php or equivalent, look into the group of the publish. If it's inside your special category, don't display it.