I've seen a few questions around this topic, but unsure if it's been solved.
Basically without knowing the specific query_arg (WP_Query) array data, there isn't an easy way to filter a post selector field type.
A simple scenario:
Three Custom Post Types: author, book, collection
.
Books have a meta_key of author tied to author post IDs.
- In Collection add two fields; selector for
author
& selector for book
(maybe book is a multi-selector or is clonable).
- We want to filter the book field by author (but want it dynamically filtered by selecting the author from the author field (could be single or multi-selector).
I would like to add a note that I have build a simple working version of this in javascript, but it's limited to a few scenarios, and as I dive deeper into selection that filter a field by post_type, taxonomy, or multi selectors (in a repeater group) the basic function I built becomes moot.
I'd like to avoid conditional logic fields, since it still wouldn't cover knowing the selections of what I am calling the field filter selectors.
Anyone build something like this? Does this seem like a custom field type?