Im trying to print my own created widget with the following function:
The widget is defined with the following values:
$this->WP_Widget('openingHours', 'Opening', $widget_ops, $control_ops);
When I try to get the widget I use the following code:
Although nothin shows up. I have added info to the widget at the admin panel. And this code also prints the widget the right way.
if ( !function_exists( 'Footer 2' ) || !dynamic_sidebar() ) : dynamic_sidebar( 'Footer 2' ); endif;
What am I doing wrong with "the_widget()" function and how should I do it right?