Custom post type single page not working
<p>I have aj-fashions custom post type. technically i tried to show the loop of all post in a template file named fashio-template.php and now for the single post i have created file single-fashions.php. still i am getting 404 error of page not found.</p>

<p>Kindly advice, following is my code.</p>

<pre><code>add_action( 'init', 'fashion' );
function fashion() {
  register_post_type( 'aj-fashion',
    array(
      'labels' =&gt; array(
        'name' =&gt; __( 'AJ Fasions' ),
        'singular_name' =&gt; __( 'AJ Fashion' )
      ),
        'public' =&gt; true,
        'has_archive' =&gt; true,
        'show_ui' =&gt; true,
        'hierarchical' =&gt; false,
        'rewrite' =&gt; array('slug' =&gt; 'aj-fashions',),
        'supports'=&gt; array( 'title', 'editor', 'thumbnail', 'author' ),
    )
  );
}
</code></pre>