I've built up multiple dynamic sidebars for front page item manipulation. Each sidebar contains a Text widget, and I want to retrieve each widget's content (according to widget ID) from wp_options.
Basically, the structure is dbName -> wp_options -> option_id #92
contains the following:
a:9:{i:2;a:0:{}i:3;a:3: {s:5:"title";s:0:"";s:4:"text";s:2:"mainItem";s:6:"filter";b:0;}i:4;a:3: {s:5:"title";s:0:"";s:4:"text";s:9:"leftThree";s:6:"filter";b:0;}i:5;a:3: {s:5:"title";s:0:"";s:4:"text";s:10:"rightThree";s:6:"filter";b:0;}i:6;a:3: {s:5:"title";s:0:"";s:4:"text";s:8:"rightTwo";s:6:"filter";b:0;}i:7;a:3: {s:5:"title";s:0:"";s:4:"text";s:8:"rightOne";s:6:"filter";b:0;}i:8;a:3: {s:5:"title";s:0:"";s:4:"text";s:7:"leftOne";s:6:"filter";b:0;}i:9;a:3: {s:5:"title";s:0:"";s:4:"text";s:7:"leftTwo";s:6:"filter";b:0;} s:12:"_multiwidget";i:1;}
[Actually all on one line.]
I want to retrieve the following strings:
- mainItem
- leftOne/leftTwo/leftThree
- rightOne/rightTwo/rightThree
What's the syntax for such a query? And how can I add it to the PHP template?