Home › Forums › Add-ons › Flexible Content Field › Custom post type value in flexible content › Reply To: Custom post type value in flexible content
You need to tell WP where to get the information from.
To be honest, I can’t tell by your code above exactly what you mean. But there is an explanation on getting fields from the related post on the post object field doc https://www.advancedcustomfields.com/resources/post-object/
You can either do this or you can supply the post ID to the WP functions.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.