I've got a wordpress blog, and I am using custom publish type area for movies. Now Please Understand my Problem:

I've produced a custom type "Movies" as well as designed a Movies Page that is just seem like this link Now Here's my problem, After I click any movie, Link happening single.php template, But I wish to create a custom 'single-movies.php' template to split up Movies Page using their company groups. In order to change another layout for movies..

So Please let me know a inside a simple way, Which code I personally use with this, things i do? How you can send movie to my single-movies.php template, although not in single.php. For additional understand Please checkout this website and then click any movie page then you will understand What i'm saying? I am asking this third time but no help with this.

The format single-cpt.php should work, provided cpt may be the exact text you utilized in the register_publish_type function, eg:

register_post_type('cpt', $args);

I've formerly encounter trouble using capitalised words for custom publish type names, therefore if your CPT is 'Movies', I would suggest altering it to 'movies'.

You may also call a custom publish key in any template file while using Wordpress_Query class, eg:

  $args = array(
    'post_type' => 'movies', // or 'Movies'
    'numberposts' => -1,
    'order' => DESC
  $myquery = new WP_Query($args);
    if($myquery->have_posts()) : 
        while($myquery->have_posts()) :

    your loop code goes here

  endwhile; endif;

there is another publish here

that will outline the technique you'll need..

rather than developing a custom publish type, make use of the single-8.php template based solution, where 8 may be the category for the movies..

this provides you with an easy method to produce your single page just for your movies..

this uses the code below inside your functions.php file:

add_filter('single_template', create_function('$t', 'foreach( (array) get_the_category() as $cat ) { if ( file_exists(TEMPLATEPATH . "/single-{$cat->term_id}.php") ) return TEMPLATEPATH . "/single-{$cat->term_id}.php"; } return $t;' ));

hope that can help...