Relational Fields in ACF

Hi Team,
I have a simple relational field in an ACF field group. This is being used on a Single Layout for Posts.
Field Group = Designs
Relational Field = Designers

I am able to pull in the Designer post_title without issue. What I’m wonder is what the syntax should be to get the url for the Designer’s post so I can link back to their profile. Here’s where I stopped - this works.

Designer: {{dc:looper:field key="post_title"}}

I want to wrap the title with an anchor like so:

Designer: {{dc:looper:field key="post_title"}}

I’m just not sure what should be used for the href:

{{dc:looper:field key=“post_url”}}

Suggestions?

Hello @lorax,

Thank you for the inquiry.

Try using the key “guid” {{dc:looper:field key=“guid”}} . If this doesn’t work, you can also use Twig to get the post object or permalink.

Please post the login details in the secure note so we can test it further.

Best regards.

Thanks @Ismael,
GUID didn’t work. Related question, because I can access the post_title via the relationship, I’m assuming I should be able to get the permalink to that post too. Yes?

FYI the section has a Looper Provider and the text field has a Looper Consumer (All) on it.

Thank you for the info. Using “guid” seems to be working as expected. In the test page, the Timberworks Design link redirects to the designer/timberworks-design/ page.

Thank you!
Hm… it must have been cached. Did you change anything?

You’re welcome! We simply replaced post_url with guid. Let us know if you have more questions.

I tried that but it didn’t work. I must have had a typo I didn’t see. No matter. It’s working. Thanks!

G

Alright! Feel free to open another thread should you have more questions. Have a nice day.