I am using ACF Pro to make a relationship between two custom post types.
One CPT is a thing and the other is a Container of Things. I need to solve the issue of things within a container of things being visible when container of things has been unpublished.
I think using something like pre_get_posts to filter all queries that happen before any results get returned is the solution, but I am not 100% sure. Or perhaps some way to unpublish all things when the relationship field post becomes unpublished.
Has anyone else encountered this issue?