WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Display Page Template for Post by ID (1 post)

  1. bk_design
    Member
    Posted 2 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic