vendredi 3 avril 2015

ACF Checkbox - check box output image

I am trying to get the ACF checkbox to output an image when when it is checked. Here is what I have


<?php if (in_arry('The Home Depot', ("retailers"))) { echo '<img src="' . echo get_stylesheet dirctory_url() . '/images/thehomedepot.jpg'" alt="The Home Depot"> } elseif(in_arry('True Value', ("retailers"))) { echo '<img src="' . echo get_stylesheet dirctory_url() . '/images/truevalue.jpg'" alt="The Home Depot"> }else {


} ?>


retailers is the checkbox field and The Home Depot and True Value are the checkboxes.


Thanks in advance


Aucun commentaire:

Enregistrer un commentaire