title: Wordpress single-post-type template not displaying post
body: <p>I have a theme with two custom post types, sermons, and members. I also have permalinks set to postname.</p>
  
  <p>At first, single.php would catch general blog posts, as well as members, but not sermons... it would only display the index.php file.</p>
  
  <p>After some research, I found resetting (saving) permalinks would reset them. This sort of worked by now catching the member custom posts, but only to display index.php for sermons.</p>
  
  <p>this is how I call them...</p>
  
  <pre><code>// Custom Post types for Sermons
  add_action('init', 'sermons');
  
  function sermons() {
    $args = array(
      'labels' =&gt; array(
         'name' =&gt; __( 'Sermons' ),
         'singular_name' =&gt; __( 'Sermons' ),
         'add_new' =&gt; __( 'Add Sermon' ),
         'add_new_item' =&gt; __( 'Add Sermon' ),
         'edit_item' =&gt; __( 'Edit Sermon' ),
         'new_item' =&gt; __( 'Add Sermon' ),
         'view_item' =&gt; __( 'View Sermon' ),
         'search_items' =&gt; __( 'Search Sermons' ),
         'not_found' =&gt; __( 'No Home Sermons found' ),
         'not_found_in_trash' =&gt; __( 'No Sermons found in trash' )
     ),
      'public' =&gt; true,
      'show_ui' =&gt; true,
      'capability_type' =&gt; 'post',
      'hierarchical' =&gt; false,
      // 'menu_icon' =&gt; WP_CONTENT_URL . '/themes/####/images/home-widget.png',
      'rewrite' =&gt; true,
      'exclude_from_search' =&gt; true,
      'menu_position' =&gt; 20,
      'supports' =&gt; array('title', 'editor', 'thumbnail', 'page-attributes'),
      'has_archive' =&gt; true
    );
  
    register_post_type('sermons',$args);
  }
  
  // Custom Post types for Members
  add_action('init', 'members');
  
  function members() {
    $args = array(
      'labels' =&gt; array(
         'name' =&gt; __( 'Members' ),
         'singular_name' =&gt; __( 'Members' ),
         'add_new' =&gt; __( 'Add Member' ),
         'add_new_item' =&gt; __( 'Add Member' ),
         'edit_item' =&gt; __( 'Edit Member' ),
         'new_item' =&gt; __( 'Add Member' ),
         'view_item' =&gt; __( 'View Member' ),
         'search_items' =&gt; __( 'Search Members' ),
         'not_found' =&gt; __( 'No Home Members found' ),
         'not_found_in_trash' =&gt; __( 'No Members found in trash' )
     ),
      'public' =&gt; true,
      'show_ui' =&gt; true,
      'capability_type' =&gt; 'post',
      'hierarchical' =&gt; false,
      // 'menu_icon' =&gt; WP_CONTENT_URL . '/themes/####/images/home-widget.png',
      'rewrite' =&gt; true,
      'exclude_from_search' =&gt; true,
      'menu_position' =&gt; 20,
      'supports' =&gt; array('title', 'editor', 'thumbnail', 'page-attributes'),
      'has_archive' =&gt; true
    );
  
    register_post_type('members',$args);
  }
  </code></pre>
  
  <p>I have tried single-sermons.php and single-members.php, neither seem to work. Is it the way I registered each custom post type that is breaking this?</p>
  
  <p>**** EDIT ****
  Removed <code>'rewrite' =&gt; true</code> from $args, and everything is fine, but I'd much rather have SEO friendly urls.</p>
  
  <p>**** EDIT ****
  Fixed it... apparently, removing <code>'rewrite' =&gt; true</code> in the args, refreshing the permalinks, and adding <code>'rewrite' =&gt; true</code> again, did the trick.</p>