ACF Post Object to Single Layout

Hi there,

Quick question about returning data from the Post Object ACF field to Single Layouts.

I’m building a site with step-by-step guides. Each guide has a main page/hub then a series of individual steps (one page = one step).

The step pages are using a single layout in Cornerstone. And I’ve assigned a Post Object field to these pages so you can select the parent hub page. I would like to then pull that page title and link and insert into my single layout. How can I achieve this? Ran it through chat GPT and it suggested {{dc:acf:post_field field=“parent_guide” return=“post_title”}} … but that didn’t work.

Hope this all makes sense.

Thanks,

Thibault

Hello @thnicholl,

Thanks for writing to us.

To help you with your concerns, we need to check your settings, I would request you please share the admin login details meanwhile I would suggest you troubleshoot a few of the common issues before we investigate your settings. Please share your details in a secure note. Please provide the following details

  • WordPress Login URL
  • Admin-level username and password
  • Exact post URL& layout URL

You can find the Secure Note button at the bottom of your posts

Thanks

Thank you. Secure note attached to my first message.

Hello @thnicholl,

I tried to access your given site URL, but it is taking me to a 404 page. Please share the correct page URL and layout URL so we can debug it on our end.

Thanks

Sorry about that. Link in new secure note.

Thanks!

Hey @thnicholl,

Change the return format of your ACF Post Object field to Post ID:

And then you may use this dynamic element to display the Page Title:
{{dc:post:title post="{{dc:acf:post_field field="parent_guide"}}"}}

Hope this helps.