Home › Forums › General Issues › How to display a value from a parent page? › Reply To: How to display a value from a parent page?
if it is url, than:
$url = wp_get_attachment_url( $attachment_id );
$title = get_the_title( $attachment_id )
is false for sure. because it expect you work with ID 😉
you didn’t answer what values you get from the echos.
what was output of my code from last post?
(do you get correct ID and ParentID? and what did you get from get_field?)
with URL you may can use $attachment_id
direct
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.