title: How to create custom widget area and store content in footer?
body: <p>I want to craete a custom widget area and store it's content in footer.</p>
  
  <p>I'm doing this as a part of the plugin I'm creating. So, in the main plugin file, I tried with:</p>
  
  <pre><code> if ( function_exists('register_sidebar') )
   register_sidebar(array(
  'name' =&gt; 'Name of Widgetized Area',
  'before_widget' =&gt; '&lt;div class = "widgetizedArea"&gt;',
  'after_widget' =&gt; '&lt;/div&gt;',
  'before_title' =&gt; '&lt;h3&gt;',
  'after_title' =&gt; '&lt;/h3&gt;',
  )
  );
  </code></pre>
  
  <p>but it doesn't showing the widget area in wordpress admin Appearance -> Widgets.</p>
  
  <p>That's the first problem... The other one is: When I figure out how to add a widget area, then how to implement that the widget stored in that custom widget area be placed in footer? I'm thinking of adding this to footer.php file of the theme I'm using:</p>
  
  <pre><code>&lt;?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("Name of 
  Widgetized Area") ) : ?&gt;
  &lt;?php endif;?&gt;
  </code></pre>
  
  <p>I'm not sure that this is right... and another problem is: I'm adding this directly in footer.php of a theme I'm using, so it means that the plugin will not work if another theme is installed and activated. Should I write a function to find footer.php file and then write that in it or should I do something else. And what if a theme doesn't have footer.php file? </p>