title: How to display my wordpress widget programmatically?
body: <p>I need to display my custom made widget in WP page based custom page template programmatically.</p>
  
  <p>This is the scenario:</p>
  
  <p>I created page based on custom page template called "product" now I need in its sidebar display my custom made widget. I need this side bar to be totally different from other pages this is why I want to display it programmatically.
  I tried to use <strong>the_widget()</strong> function but I think it works only with built in widgets and also I don't know how to pass parameters registered with register_sidebar function to it, because it seems it doesn't use them by default.</p>
  
  <p>Actually I used this : <strong>the_widget('WP_Widget_Search')</strong> to test it and widget was there but it ignored theme settings, I mean settings in function.php :</p>
  
  <pre><code>register_sidebar( array(
      'name' =&gt; 'Sidebar',
      'before_widget' =&gt; '&lt;div id="%1$s" class="widget %2$s"&gt;',
      'after_widget' =&gt; '&lt;/div&gt;&lt;/div&gt;',
      'before_title' =&gt; '&lt;h3&gt;',
      'after_title' =&gt; '&lt;/h3&gt;&lt;div class="padder"&gt;'
  ) );
  </code></pre>
  
  <p>So as I said I don't know if it works with custom made widgets (created in plugins) because I don't know how to pass widget name there and params. How to do that?</p>