Pass author data to the query. It should be that hard.
Author
ParametersShow posts associated with certain author.
- author (int) – use author id.
- author_name (string) – use
‘user_nicename’ – NOT name.- author__in (array) – use author id (available
since Version 3.7).- author__not_in (array) – use author
id (available since Version
3.7).
Of course, I don’t know what page you are on or how you are determining, or needing to determine, the “author” so I’m not quite sure how to guess at the code.