Radio
<?php
$tea_content = array(
array(
'type' => 'radio',
'title' => 'Ok ok... But what is your favorite?',
'id' => 'my_radio_field_id',
'default' => 'minions',
'mode' => 'image',
'description' => '- "Bapouet?" - "Na na na, baapouet!" - "AAAAAAA Bapoueeeeettt!!!!"',
'options' => array(
'minions' => 'The Minions',
'lapinscretins' => 'The Lapins Crétins',
),
),
);
Retrieve data
Using the _get_option('my_radio_field_id')
method, you'll get (with a json_encode()
display):
"minions"
Updated less than a minute ago