Support

Account

Forum Replies Created

  • Hi,

    I figured it out. Should be like this:

    $choices = get_field('product_information');
        // loop
        if( $choices): ?> 
    		<ul class='prod-row'>
           <?php foreach( $choices as $choice): ?> 
               <li> <img src="<?php echo get_stylesheet_directory_uri(); ?>/imgs/products/<?php echo $choice ?>.svg " /> </li>
                <?php endforeach; ?>
    			</ul>
    <?php endif; 

    I hope that helps someone.

Viewing 1 post (of 1 total)