title: Single page template not working for custom post type
body: <p>I have 3 different type of custom post types and using <strong>Redux framework</strong>. All are working but facing two problem. If i unset the framework, it works fine.</p>
  
  <ol>
  <li><p><code>the_permalink()</code> is missing post_type in URL like following:
  should be <code>http://sitename/product/abc</code> but getting <code>http://sitename/abc</code>.
  and it takes me to 404 page.(<em>In product edit screen i got correct slug, but not with <code>the_permalink()</code></em>)</p></li>
  <li><p>When i correct the url manually (<code>http://sitename/product/abc</code>), it takes me to homepage. But it should be in single-product.php or single.php page.</p></li>
  </ol>
  
  <p>I used following code to make Custom post type:</p>
  
  <pre><code>add_action( 'init', 'tormuz_product_cpt' );
  function tormuz_product_cpt() {
      $labels = array(
          'name'               =&gt; _x( 'Products', 'post type general name' ),
          'singular_name'      =&gt; _x( 'Product', 'post type singular name' ),
          'add_new'            =&gt; _x( 'Add New', 'book' ),
          'add_new_item'       =&gt; __( 'Add New Product' ),
          'edit_item'          =&gt; __( 'Edit Product' ),
          'new_item'           =&gt; __( 'New Product' ),
          'all_items'          =&gt; __( 'All Products' ),
          'view_item'          =&gt; __( 'View Product' ),
          'search_items'       =&gt; __( 'Search Products' ),
          'not_found'          =&gt; __( 'No products found' ),
          'not_found_in_trash' =&gt; __( 'No products found in the Trash' ), 
          'parent_item_colon'  =&gt; '',
          'menu_name'          =&gt; 'Products'
      );
      $args = array(
          'labels'        =&gt; $labels,
          'description'   =&gt; 'Holds our products and product specific data',
          'public'        =&gt; true,
          'menu_position' =&gt; 45,
          'supports'      =&gt; array( 'title', 'editor', 'thumbnail' ),
          'has_archive'   =&gt; true,
      );
      register_post_type( 'product', $args );
      flush_rewrite_rules();
  }
  </code></pre>
  
  <p>I am running <code>WordPress 3.9</code> and <code>Redux 3.2.0</code> <strong>without</strong> <code>dev_mode</code> enabled.</p>
  
  <p>My permalink structure: <code>/%postname%/</code></p>
  
  <p>Please let me know, if it can be solved.</p>
  
  <p>Thanks in advance.</p>