Hello,
I added ACF Pro and programmed it to show on the Regional Developer template. It did not show here: http://r73.dd4.myftpupload.com/test-2/. The 17 fields I added do show on the page creator, but do not show when published. I then created my own page template as shown here:
<?php while ( have_posts() ) : the_post(); ?>
<?php $disable_page_title = get_post_meta( get_the_ID(), '_x_entry_disable_page_title', true ); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php if ( has_post_thumbnail() ) : ?>
<div class="entry-featured">
<?php x_featured_image(); ?>
</div>
<?php endif; ?>
<div class="entry-wrap">
<?php if ( is_singular() ) : ?>
<?php if ( $disable_page_title != 'on' ) : ?>
<header class="entry-header">
<h1 class="entry-title"><?php the_title(); ?></h1>
</header>
<?php endif; ?>
<?php else : ?>
<header class="entry-header">
<h2 class="entry-title">
<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to: "%s"', '__x__' ), the_title_attribute( 'echo=0' ) ) ); ?>"><?php x_the_alternate_title(); ?></a>
</h2>
</header>
<?php endif; ?>
<?php x_get_view( 'global', '_content' ); ?>
<?php
$fields = get_fields();
//$banner = $fields [“banner”];
$intro_title = $fields [“intro_title”];
echo $intro_title;
$subtitle = $fields [“intro_subtitle”];
$hide_title = $fields [“hide_title”];
$rd_img_id = $fields ["rd_image"];
$rd_img_url = wp_get_attachment_image_src($rd_img_id, 'large', false);
$rd_img = $rd_img_url[0];
$rd_secton_heading = $fields ["subtitle"];
$rd_areas = $fields ["areas_of_high_development"];
$rd_content = $fields ["content_area"];
$rd_bottom_content = $fields ["bottom_content"];
$rd_contact_img_id = $fields ["contact_image"];
$rd_contact_img_url = wp_get_attachment_image_src($rd_contact_img_id, 'large', false);
$rd_contact_img = $rd_contact_img_url[0];
$rd_contact_name = $fields ["contact_name"];
$rd_contact_phone = $fields ["contact_phone_number"];
$contact_form = $fields["contact_form"];
$form_object = $contact_form;
gravity_form_enqueue_scripts($form_object['id'], true);
$options = get_fields(‘options’);
$why_title = $options [“why_honest_title”];
$why_content = $options [“why_honest_content”];
$socials = $fields[ ‘socials’ ];
?>
<?php x_get_view( 'global', '_comments-template' ); ?>
<?php endwhile; ?>
</div>
<?php get_footer(); ?>
Please help,
LF