3/23/2017 - 3:32 PM

Parent Page Values

Global Advanced Custom Fields.

Fields will be filled for Landing Page Template but values will fill out for Thank You Page Template as well. Include the following on the Thank You Page Template...

  Template Name: Thank You Page
  global $post;
  $post_parent = $post->post_parent;
  $custom_fields_array = array(
  	"phone_number", // include this on any template where phone_number is required
  foreach ($custom_fields_array as $custom_field) { 
  	$$custom_field = get_field($custom_field, $post_parent);
  // ... and some more code below