Output array of option field
-
I have created an option page with a few options nicely stored in the database.
I have to echo the array of
get_option('bookings_bookings_settings_opening_days')
but I can’t get it to work. A simple foreach doesn’t seem to work…
The value stored in the database looks like this:
a:6:{i:0;s:2:"Ma";i:1;s:2:"Di";i:2;s:2:"Wo";i:3;s:2:"Do";i:4;s:2:"Vr";i:5;s:2:"Za";}
And I need the output look like this: Ma Di Wo Do Vr Za
Just to be complete… this does not work:
$exeptions = get_option('bookings_bookings_settings_opening_days'); foreach ($exeptions as $exeption) { echo $exeption; }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Output array of option field’ is closed to new replies.