Get Widget Titles from active widgets
-
I’m looking to get the titles of each active widget in a sidebar. I can get the widget class_name using
<?php $sidebars_widgets = get_option('sidebars_widgets', array()); foreach($sidebars_widgets['sidebar-12'] as $widget): echo $widget; endforeach; ?>
I’m not sure how to get the title of each widget based on this output e.g. going from
meta-2 and tag_cloud-3 to “Meta Links” and “Popular Tags” or whatever they might be.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Get Widget Titles from active widgets’ is closed to new replies.