Answer the question
In order to leave comments, you need to log in
How to display fields from ACF in functions.php file in wordpress?
The people, tell me, created options for the page using the Advanced Custom Fields Plugin for WordPress. You need to display them in functions.php (for get_field() to work, etc.) I will place the code in functions.php (for example)
<?php $field = get_field('ремонт_рабочие'); ?>
<? foreach($field as $fields){ ?>
<li data-thumb="">
<img src="<?php echo $fields['фото_рабочего'];?>" height="140" width="220" alt="">
</li>
<? } ?>
</ul>
</div>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question