206 posts
  • 6 Years of Membership
  • Affiliate Level 3
  • Author Level 6
  • Collector Level 3
+4 more
mlando
says

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

316 posts
  • Affiliate Level 2
  • Author Level 5
  • Collector Level 2
  • 4 Years of Membership
+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
  • 6 Years of Membership
  • Affiliate Level 3
  • Author Level 6
  • Collector Level 3
+4 more
mlando
says

thank a ton!

by
by
by
by
by
by