AFC content and Cornerstone use

In your documentation and forum post you mention using a direct ‘shortcode’ to input AFC content via Cornerstone. But you also say this is for text only content and it will not support galleries. I am assuming that means it will not support an image as part of the ACF set-up for use in Cornerstone? Can I add ACF fields - including galleries or images to a template file and still edit the template using Cornerstone?

Thank you. It is new for me and so I am just trying to get my baseline here. Best, Georgia

Hello There,

Thanks for writing in!

1.) Yes ACF Pro integration using {{acf:field_name}} only supports tex and images and galleries were not included.

2.) You can add add ACF Fields including images and galleries to a template file using the get_field() functions.

<?php the_field('field_name'); ?>

3.) Yes you may still be able to edit the template in Cornerstone but only the content section. Any changes or addition to the template like the ACF field or the custom content added will be not editable because only the the_content section or the line below in the template part will be editable in Cornerstone.

<?php x_get_view( '{your-stack}', 'content', get_post_format() ); ?>

Hope this helps.

Thank you @RueNel. It gives me enough info to feel like I can experiment now. Best, Georgia

On behalf of my colleague, you’re welcome. Cheers! :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.