I’m trying to create a custom “post object” field which will have the posts of a certain type, but authored by the user who is logged in.
It’s easy to get posts of a certain (custom) type or a category based on taxonomy, but I found no option to filter by author. Even if the posts are private, and authored by someone else, they show up in the list.
One way to achieve this would be through the use of acf/fields/post_object/query filter to modify the $args array which is used to query the posts shown in the post_object select field. The code should as shown below: