Register post status, exclude from searches
If it was me, I would probably just override the queries on the individual templates that you are trying to hide “ghosted” posts on. However, I can see how in some situations it would be better to override the main query. How about: function public_query_published_only($query) { if ( !$query->is_single() && !current_user_can(‘manage_options’) && !is_admin() ) { … Read more