Home Forums Front-end Issues text field / any field not displaying on front-end ?


text field / any field not displaying on front-end ?

  • Dear ACF,

    I created the field group and then created simple text field with the location rule to display on Front page and it does display on editor screen only.

    Added this function code in the custom front page template.

    <?php the_field(‘field_name’); ?>

    But it does not display!

    tried to display the field type with the following code so it shows a NULL in display!

    <?php var_dump( get_field(‘field_name’) ); ?>

    Kindly advice how to troubleshoot and fix it.

  • however text fields are displaying in post page but not in front page!

  • What type of template is the custom front page template? Is this the template that is showing the blog archive?

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

You must be logged in to reply to this topic.