How to get individual values from custom widget?

I think you’re doing this the hard way. I would first visit phpMyAdmin, find your WP database, find the Options table, and then search the option_name field for the name of your widget using the %search_term% form. When you find it you’ll see all the data behind the widget stored in a single field/string called option_value that’s serialized using php’s serialize function. Simply grab the field’s contents and unserialize it using unserialize(‘raw_field_contents’) (note the single quotes around the raw data), which will produce a single array with all the values behind that widget.

Okay, so that’s the manual process. It would seem more efficient to retrieve the serialized widget values using WP’s database functions to retrieve the values for each widget you’re interested in. Your values would then be returned in a variable, so the decode form would be unserialize($variable) without the single quotes. Note that the first index in the multidimensional array is the particular instance of the widget. For instance, if you placed a widget in the sidebar and the same widget in the footer area this first index number allows you to differentiate between instances.