206 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 50+ members
  • Has sold $40,000+ on Envato Market
  • Has collected 50+ items on Envato Market
+2 more
mlando says

Anyone know how to call/echo the image radio button VALUE in the theme template from SMOF ?

316 posts
  • Has referred 10+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Has been part of the Envato Community for over 3 years
+2 more
SyamilMJ says

Hi there,

The image radio button saves the key and not the value;

You’d use it as such:

global $data;

$foo = isset($data['my_radio_button_id']) ? $data['my_radio_button_id'] : '';

if($foo == 'bar') {
    //display stuff
}

In the future please post questions regarding SMOF on its Github issue page.

Cheers

206 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 50+ members
  • Has sold $40,000+ on Envato Market
  • Has collected 50+ items on Envato Market
+2 more
mlando says

thank a ton!

by
by
by
by
by
by