I am trying to populate cornerstone fields with content from the AFC plugin. However when I follow the AFC Cornerstone Integration guidelines (see below) all I get is the shortcode text “{{acf:field_name}}” not the content from AFC.
I have set up a custom template and have AFC set to show input fields when a page is set to that template. I can pull the values directly from the custom template php so I know they are working on the page. These are just basic text values not images.
Here is my custom template code
<?php while ( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<p><?php the_field('c_name'); ?></p>
<p><?php the_field('c_city'); ?></p>
<p><?php the_field('c_pricing'); ?></p>
<p><?php the_field('c_blurb'); ?></p>
<p><?php the_field('c_address'); ?></p>
<p><?php the_field('c_phone'); ?></p>
<p><?php the_field('c_email'); ?></p>
<?php x_get_view( 'global', '_content', 'the-content' ); ?>
</article>
<?php endwhile; ?>
Thanks for looking,
Eric
Cornerstone Integration
We’ve included a basic ACF Pro integration with Cornerstone which allows you to use a shortcode within your pages and posts created with Cornerstone to automatically pull through the value of your ACF Pro custom field without having to modify template files.
You’d use:
{{acf:field_name}}