I have a custom sidebar in wp created by:
register_sidebar(array(
'id' => 'test_w',
'name' => 'test',
'before_widget' => '<div class = "widgetizedArea">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
));
Now I print the IDs of the widgets inside with the code:
$nomi_widget = array();
$sidebars_widgets = wp_get_sidebars_widgets();
var_dump($sidebars_widgets['test_w']);
The output is:
array (size=2)
0 => string 'adni_widgets-93' (length=15)
1 => string 'adni_widgets-96' (length=15)
The question is: is there a way to print widget in frontend using its ID?