• Resolved bk_design

    (@bk_design)


    Hi,

    I am designing a wordpress site with “SpryTabbedPanels” instead of pages using custom post_types and I am running into an issue with having a TEMPLATEPATH displaying when a tab (post) is selected. This is the code that I am having an issue with:

    <?php while ( have_posts() ) : the_post(); ?>
    <?php
    $post = $wp_query->post;
    if ( is_single('POST-ID-HERE') ) {
    include(TEMPLATEPATH . '/TEMPLATE-PAGE-HERE.php'); }
    else {
       echo 'test';
    }
    ?>
    <?php wp_reset_query(); ?>

    Does anyone have any ideas of what I am doing wrong?

  • The topic ‘Display Page Template for Post by ID’ is closed to new replies.