Dc acf show all posts of a specific author/user

Hi,

i use acf pro to add custom fields to pages with the template “Autoren”
One Field is “Autor” Field with will set for a specific User.

Now i use the Layout builder to build a specific layout for the author. The Layout will be used if the page template is “Autoren”

My Problem is i would like to show all Posts of the specific User defined in the custom field.
I hope you know what i mean.

Best regards
Tobi

Hello @rok1975,

Thanks for writing to us.

I would suggest you use the Looper and set the Looper Provider as Query String. Please have a look at this thread to learn more about the query strings.

You may check this thread as well.

Thanks

Hi,

okay i found this about Query Strings for posts of a specific User

So is it right, that my Query String for the Looper is for example author=2?

Best regards
Tobi

Hey @rok1975,

Yes, based on the article you’ve posted that’s the query string for getting specific user/author.

Hope that helps.

Hey,

my query for the Looper is now “post_type=post&author_name={{dc:acf:user_field field=“nickname”}}” and it works :smiley:

Thanks for your help. Great support.

Hey @rok1975,

We’re glad that you’re able to figure it out! If you have any other concerns or clarifications regarding our theme features, feel free to open up a new thread.

Thank you.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.