Home Forums ACF PRO Dont see values in font end using front-page.php and options page


Dont see values in font end using front-page.php and options page

  • Hey all,
    I am kinda new to acf.
    I have some custom fields.
    The fields are inside a group called upper_front.
    the field foe example called cube_title_1.
    I call them in front-page.php file.
    this is the code in my functions.php page

    if( function_exists('acf_add_options_page') ) {
        'page_title'  => 'Theme General Settings',
        'menu_title'  => 'Theme Settings',
        'menu_slug'   => 'theme-general-settings',
        'redirect'    => false
        'page_title'  => 'Theme Header Settings',
        'menu_title'  => 'Header',
        'parent_slug' => 'theme-general-settings',

    This is how I call the value of the field.
    <?php the_field('cube_title_1', 'option'); ?>

    I see the fields in the edit page.
    I dont get any result in the front end.
    What can be the problem?

  • Hi @davsev

    See here:

    The field name would become: upper_front_cube_title_1 when using the ACF Group field.

    Hope that helps! Let me know.

  • Thank you very much!
    Unfortunatley its not working.
    <?php the_field('upper_front_cube_title_1', 'option'); ?> is still not showing results…

    this is a screenshot of my acf ui.
    Mybe I didnt explainf myself well.

  • That should work based on what I see in the screenshot… the only thing is that maybe that field group is not attached to an option page? Check in Location Rules below the field set to be sure that Options Page is set. And then of course, be sure it has a value 🙂

  • Thank you for you fast answer.
    the field was empty…

    shame on me…

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.