Good morning all,
I am using gravity form to create posts with ACF fields.
I find all my data in the back-office, on the other hand in Front, the data is not displayed.
For them to be displayed, I have to update the post in BO to display them
I took the code in the ACF docs as I take the prefix and suffix:
<? php $ fields = get_field_objects (); ?>
<? php if ($ fields):?>
<br>
<h2 class = "margin-bottom: 50px;"> Command: </h2>
<ul class = "product">
<? php foreach ($ fields as $ field):?>
<? php if ($ field ['value']):?>
<li class = "<? php echo $ field ['label'];?>"> <b> <? php echo $ field ['label']; ?>: </b> <? php echo $ field ['value']; ?> <? php echo $ field ['append']; ?> </li>
<? php endif; ?>
<? php endforeach; ?>
</ul>
<? php endif; ?>
Do you have an idea please?
Thank you in advance.
i’m using ACF 5.9.4