28/06/2020 Development / php

no arquivo functions.php

function wpmu_register_widgets() {

register_sidebar(array(

'name' => 'level_up_new_widget_area',

'id' => 'level_up_new_widget_area',

'before_widget' => '<div class="widget-instagram">',

'after_widget' => '</div>',

'before_title' => '<h3>',

'after_widget' => '</h3>'

));

}

add_action( 'widgets_init', 'wpmu_register_widgets');

no template da pagina

<?php if ( !dynamic_sidebar('level_up_new_widget_area')) : ?><?php endif; ?>

Espero que sirva!