Hi all,
noob here,
I’ve been trying to manipulate this bit of code to do what I want, but for 2 days it’s been driving me nuts.
So I want to set a variable $vi to value that is set from a form the_field(‘view_image’).
[php]
<?php $vi=the_field('view_image'); if ($vi==1) echo 'blabla'; ?>[/php]
The output I keep getting is 1, when it should be blabla
Please help, it’s probably something really simple and stupid, but I can’t seem to work it out.