ThemeShaper Forums » Thematic

[closed]

my custom post page only showing latest post

(1 post)
  • Started 10 years ago by elderberry
  • This topic is not resolved
  1. elderberry
    Member

    Is there a problem with my page template?
    <?php
    /*Template Name: Real_Estate*/
    // calling the header.php
    get_header();

    // action hook for placing content above #container
    thematic_abovecontainer();

    ?>

    <div id="container">

    <?php thematic_abovecontent(); ?>

    <div id="content">

    <?php

    // calling the widget area 'page-top'
    get_sidebar('page-top');

    the_post();

    thematic_abovepost();

    ?>

    <div id="post-<?php the_ID();
    echo '" ';
    if (!(THEMATIC_COMPATIBLE_POST_CLASS)) {
    post_class();
    echo '>';
    } else {
    echo 'class="';
    thematic_post_class();
    echo '">';
    }

    // creating the post header
    thematic_postheader();

    ?>

    <div class="entry-content">
    <div class="entry-meta">
    <?php echo get_the_term_list( $post->ID, 'rdc_price', 'Price: ', ', ', '' ); ?>
    <?php echo get_the_term_list( $post->ID, 'rdc_contract', 'Contract: ', ', ', '' ); ?>
    <?php echo get_the_term_list( $post->ID, 'rdc_purpose', 'Property Use: ', ', ', '' ); ?>
    <?php echo get_the_term_list( $post->ID, 'rdc_size', 'Size: ', ', ', '' ); ?>
    </div>
    <?php

    the_excerpt();

    wp_link_pages("\t\t\t\t\t<div class='page-link'>".__('Pages: ', 'thematic'), "</div>\n", 'number');

    edit_post_link(__('Edit', 'thematic'),'<span class="edit-link">','</span>') ?>

    </div><!-- .entry-content -->
    </div><!-- #post -->

    <?php

    thematic_belowpost();

    // calling the comments template
    if (THEMATIC_COMPATIBLE_COMMENT_HANDLING) {
    if ( get_post_custom_values('comments') ) {
    // Add a key/value of "comments" to enable comments on pages!
    thematic_comments_template();
    }
    } else {
    thematic_comments_template();
    }

    // calling the widget area 'page-bottom'
    get_sidebar('page-bottom');

    ?>

    </div><!-- #content -->

    <?php thematic_belowcontent(); ?>

    </div><!-- #container -->

    <?php

    // action hook for placing content below #container
    thematic_belowcontainer();

    // calling the standard sidebar
    thematic_sidebar();

    // calling footer.php
    get_footer();

    ?>

    Posted 10 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.