I have defined user profile fields.
Now I want to display these user profile fields for the author of the current post. They will be shown through a shortcode in the sidebar.
I managed to get it all working properly, except for a minor detail. I know how the get the author's user id, I know how to get the user profile fields, but what I don't know is the code to pass on the author's user id to the query.