Appointing multiple users (authors) to blog entries with ACF

Hi there,

I created a new field with the ACF Pro called “multiautor” with the field type user. On my blog page, there are many entries written by multiple authors, so my goal is to show them all.

On the backend, I managed to appoint various users to their respected blog entries.

When I try to retrieve this information on the single blog layout, I don’t see any results. Enclosed you see a screenshot of that. What am I missing?

Thanks

Hi @burkiburak,

Thanks for reaching out.
Sometimes the only screenshot doesn’t help us to recognize the issue you are having. Can you please provide login credentials for your site in a secure note to examine it further, including:

– WordPress Site URL & Login URL
– WordPress Admin username/password

To create a secure note, click the key icon underneath any of your posts.

Thanks

Hi @burkiburak,

I was able to fix your issue on how to display multiple users on your single pages, please check the steps below on what I did on your Single Layout Builder for future references.

1.) We need to enable the Looper Provider in your Author div and select type as Dynamic Content and then select the ACF multiple fields in the input.

2.) Enable the Looper consumer in your author text element.

3.) In your text element field the dynamic content is: {{dc:user:display_name}}

4.) The final output is now showing multiple users.

image

Hope that helps.

Thank you.

Thanks, I think we are very close to a solution. Yet I see the duplicates of the main author (core WP Author tag) but not the names of co-authors (which is given individually by ACF). Screenshot 1_ example of a blog entry Screenshot 2_Backend-ACF-Multiauthor-Field

Hi @burkiburak,

The reason why it is showing the same author name because of the dynamic content in your text element.

image

That dynamic content will get the user details in the posts, not in the ACF field. To get the ACF data, I change it to {{dc:user:display_name}}, that dynamic content will get the proper data in the post ACF Field multiauthor.

See an example scenario below:

One of your post page:

Front-end view:

Note: I remove the assigned user on posts because it is just for test purposes.

Hope that helps.

Thank you.

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