How to get widget settings?
-
I’m trying to access a widget’s settings from outside the widget code.
The name of the widget is:category_grid
, and the name of the option is;widget_categories
.I tried the following code which was suggested in an answer to another question but it doesn’t return anything.
<?php $options = get_option( 'widget_category_grid' ); $cats = $options['widget_categories']; echo $cats; ?>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to get widget settings?’ is closed to new replies.