Any reason this code does not work in the admin section (specifically when ajaxing but the issue persists on other pages) of WordPress but works just fine
ob_start();
dynamic_sidebar('frontpage_widgets');
$content = ob_get_clean();
print_r($content); // nothing
the sidebars are set from what I see (because I have called my code which registered the sidebars)
print_r($GLOBALS['wp_registered_sidebars'])
Array
(
[frontpage_widgets] => Array
(
[name] => Frontpage Widgets
[id] => frontpage_widgets
[description] => Widgets for the Frontpage Widgetspage
[class] =>
[before_widget] =>
...
Is there something preventing the widgets from displaying in the admin section?
Edit - I seems that the widgets are not being set globally: $wp_registered_widgets is empty
dynamic_sidebar('frontpage_widgets');
does work perfectly fine for you on the frontend?dynamic_sidebar
works in admin with the same result as in frontend. maybe you have plugins or theme which block that, try to desactive them all