title: register_post_type in wordpress no working template
body: <p>I have problem with function "register_post_type" in wordpress.</p>
  
  <p>I add code in functions.php (theme path):</p>
  
  <pre><code>add_action( 'init', 'events' );
  
  function events() {
    register_post_type( 'events', array(
      'labels' =&gt; array(
        'name' =&gt; 'Wydarzenia',
        'singular_name' =&gt; 'events',
       ),
      'description' =&gt; 'Wydarzenia',
      'public' =&gt; true,
      'menu_position' =&gt; 20,
      'supports' =&gt; array( 'title', 'editor', 'custom-fields', 'thumbnail', 'excerpt')
    ));
  }
  </code></pre>
  
  <p>And i add template: single-events.php and archive-events.php but this no working... everytime show: index.php.. </p>
  
  <p>single.php no working for events... </p>
  
  <p><strong>Where is problem? Thanks!</strong></p>