Duplicate Snippet same page
-
Hello,
I’m working with ACF and using a php code to get infos from custom fields and show as a list:
<?php // Load field settings and values. $field = get_field_object('infra-estrutura-condominio'); $colors = $field['value']; // Display labels. if( $colors ): ?> <ul class="lista-imoveis fusion-li-item";> <?php foreach( $colors as $color ): ?> <li><?php echo $field['choices'][ $color ]; ?></li> <?php endforeach; ?> </ul> <?php endif; ?>The thing is: I use it with different fields (infra-estrutura-condominio) and the second code is not showing it´s list.
Does the premium version make it works? “Option to duplicate snippet”, or is something wrong I´m doing with the code?
Regards
The page I need help with: [log in to see the link]
The topic ‘Duplicate Snippet same page’ is closed to new replies.