• Currently I use this code to display a different single page template based on the category it is posted in:

    <?php
    $post = $wp_query->post;
    if ( in_category(‘4′) || in_category(’59’) ) {
    include(TEMPLATEPATH . ‘/sinlge-temp1.php’);
    }
    elseif (in_category(‘5’)) {
    include(TEMPLATEPATH . ‘/single-temp2.php’);
    }
    else {
    include(TEMPLATEPATH . ‘/single-default.php’);
    }
    ?>

    But Now I need a way that it will call up a different single file, if it is a post posted inside a Custom Post Type Called “Moviess”

    Any way to do this?

Viewing 1 replies (of 1 total)
  • Thread Starter KayLee1000

    (@kaylee1000)

    Oh wait! Actually I figured out it is single-movies.php

    However, Now I need a code like the one I posted above that I can add to sinlge-movies.php, that will show a different single file based on a custom taxonomy.

    It must basically show a different single file if the post was made inside the taxonomy called “Dramas”, if not, then it must show sinlge-movies-default.php

Viewing 1 replies (of 1 total)

The topic ‘Show different single post template for all posts inside a specific Post Type’ is closed to new replies.