Support

Account

Home Forums Front-end Issues cant see the fields on the front Reply To: cant see the fields on the front

  • hi and thanks for your reply..
    i solved the problem, but when i use texampny fiels or select i get display “Array”, how can i fixed it please ?
    this is my code:

    <?php
    $fields = get_fields();
    if( $fields ): ?>
    <div class=”fields_name”>
    <?php foreach( $fields as $name => $value ): ?>
    <?php if ($value != ”){ ?>
    <?php $string = $name;
    $result = preg_replace(‘/_/’,’ ‘, $string);?>
    <p><b><?php echo “<i style=’color:black;padding-left:10px;’ class=’fas fa-check-square’></i><span class=’name_lable’>” .$result; ?>:</span></b> <?php echo “<span class=’name_value’>” .$value; ?></span></p>
    <?php }?>
    <?php endforeach; ?>
    </div>
    <?php endif; ?>