In bricks I created a loop in which the latest posts in the BLOG category are displayed with the relative data of the author, such as the name and the image loaded in the author’s screen. I used the image component and told briks to load the ACF image-profile-author dynamic field, but it doesn’t load anything
To query ACF User/Author fields a little more effort is needed. The query loop assumes that your custom ACF image is included in the actual query (the post). But it is not, because it is a user field.
Have a look at the ACF documentation, there is an extra article about “User Fields”: ACF | Get values from a user
For the Bricks Loop, we have to get the Author ID before we can get the custom image. You can do this without problems inside a code element and use it instead of the image element (the code is taken from the ACF docs example):
Hey Andris,
What exactly do you mean by “I would like to add it to the Field part of the post.” ? Do you want to use this inside of the Posts Element?
Create a function (inside of your child themes functions.php) that contains the code from above. Then you can call it using {echo:yourFunction}.
but what I wonder
we really have no choice but to do it differently with bricks? Like extend Author Fields compatibility and allow us to keep control over elements under bricks
what bothers me is that I don’t have the possibility to make a div and insert an image and text link and control each element individually
what other suggestions do you have?