Sorry, I’m not sure what you’re talking about. Please explain in detail
Plugin have widget, you can insert it in sidebar panel thru WP menu. There you can set what and how to display.
I want manually set and insert widget direct in my custom php files.
Something like this
$instance = array (
'post_type' => 'some_post_type', //What to include (Posts, pages,...)
'list_style' => 'disc', //List style (disc, circle...)
'number' => '5', //Count of items
);
$args = array (
'before_widget' => '<div class="widget_class">',
'after_widget' => '</div>',
'before_title' => '<h2 class="widgettitle">',
'before_title' => '</h2>'
);
the_widget( 'SPR_Top_Widget', $instance, $args );
https://codex.wordpress.org/Function_Reference/the_widget