Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $images = array(
- 'icon1' => get_template_directory_uri().'/assets/img/icon1.png',
- 'icon2' => get_template_directory_uri(). '/assets/img/icon2.png',
- );
- $values = get_field('icons');
- if (is_array($values)) {
- foreach ($values as $value) {
- ?>
- <img src="<?php echo $images[$value] ?>" alt="">
- <?php
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement