Add Custom Post Type to Current Query
You are actually not that far away with pre_get_posts, you just need to first grab the current post types that are in the query before adding your own. Also, I’d recommend using a $priority of 99 so that the action is hooked after any other pre_get_posts hooks, meaning that if users add there own CPT’s … Read more