Adding ACF Options Page fields to cornerstone

I have created an Options page with ACF. This is for content that will change month to month and make it easier for editors to change content.

I have some text fields that I want to have populated on our home page.
I have inserted {{acf:series_headline}} per the documentation but nothing appears on the front end.

Is there a way to have the fields displayed from and options page?

Hello @designerken,

Would you mind if we check your setup? Yes, that is the correct way as using it on Cornerstone.
For the options, I am not sure if this will work. Though it will be worth a try:

{{dc:acf:field field="acf:series_headline" post_id="options"}}

See this guide too: https://www.advancedcustomfields.com/resources/options-page/

I have tried your way as well:
{{dc:acf:field field="acf:series_headline" post_id="options"}} and {{acf:series_headline}} do not render anything on the back nor front end of the site.

I have placed the shortcode from ACF in the field:
[acf field="series_headline" post_id="options"] and this at least gets something visible on the front end.

Is this a bug with dynamic content with ACF? Also how are we expected to display images? I have a image field and have its settings to return the URL. I have tried to place it in a content area but that does’t display the file on the front end:
<img src="[acf field="series_image" post_id="options"]">

Here is the code in my functions file:

function rc_acf_options_page() {
   if ( ! function_exists( 'acf_add_options_page' ) )
   return;

   acf_add_options_page( array( 
     'title'        	=> 'REFINERY Options',
     'menu_slug' 	=> 'refinery-options',
     'capability' 	=> 'manage_options',
     'redirect'		=> false
    ) );

   acf_add_options_sub_page(array(
	 'page_title' 	=> 'Home Page Settings',
	 'menu_title'	=> 'Home Page',
	 'parent_slug'	=> 'refinery-options',
   ));

}
add_action( 'init', 'rc_acf_options_page' );

Here is the setting for the field group

Hi @designerken,

Yes, it’s a bug on both DF and AFC shortcode. Please check this https://theme.co/apex/forum/t/dynamic-content-inside-the-promo-element-does-not-seem-to-work/55451/3

This was already added to our issue tracker and there is no temporary workaround at the moment. You may use ACF shortcode alone for now.

Thanks!

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