Hi,
I have 2 CPT’s. One called SDA and one called “Agent”
In SDA, I would like a field that looks up Agents, but only show those records that have been created by the same user who is adding the SDA record ? (Which invariably will only be one)/
Where would I fond documentation, and what heading would I look up to acheve this ?
Many thanks
Hi @johnshuffles-com-au !
It’s only an idea: you can use Select field for that: https://www.advancedcustomfields.com/resources/select/
After creating your field, transfert it to PHP with the ACF tool just there (yoursite.com/wp-admin/edit.php?post_type=acf-field-group&page=acf-tools), you’ll be able to use the “new WP_Query” for get your publications by author and fill up the select box.
You can use a post object field and you can adjust the query parameters used to find the posts, including the author, using an acf/fields/post_object/query filter
Nice!
@johnshuffles-com-au , forget my message. The John solution is the best.