Support

Account

Home Forums General Issues Replace radio returned value by image Reply To: Replace radio returned value by image

  • Hi @Manuc

    Yes, this is an easy task that you can accomplish with the following code:

    
    <?php 
    
    $map = array(
    	'Very simple' => 'url/to/image.jpg',
    	'Simple' => 'url/to/image.jpg',
    	'Normal' => 'url/to/image.jpg',
    );
    
    $value = get_field('field_name');
    
    $image = $map[ $value ];
    
    ?>
    <img src="<?php echo $image; ?>" />