Home › Forums › Front-end Issues › get_field not returning a specific value › Reply To: get_field not returning a specific value
The checkout page is not for a specific post. You need to supply the correct post ID to get the field from.
I am not familiar with how to do this, check with the eCommerce plugin you’re using to find out how to get the post ID of each item in the checkout and supply that ID when calling the ACF function.
<?php the_field('cancellation_policy',$post_id); ?>
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.