Home › Forums › ACF PRO › passing previous page content to Thank you page › Reply To: passing previous page content to Thank you page
You will need to either create a session value https://www.ironistic.com/using-php-sessions-in-wordpress/ or pass use a query string value ?variable=value
You will need to pass the post ID of the post that the custom field is saved to to the thank you page using one of these two methods.
Then you can use this value to get the custom fields from that post id
$value = get_field('campaign_url', $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.