Forums

Codex tea leaves. 2011 theme. (1 post)

  1. sepoto
    Member
    Posted 9 months ago #

    //page.php
    <?php get_header(); ?>
    <div id="primary">

    <div id="content" role="main">
    <?php the_post(); ?>
    <?php get_template_part( 'content', 'page' ); ?>
    <?php comments_template( '', true ); ?>
    </div><!-- #content -->

    </div><!-- #primary -->
    <?php get_footer(); ?>

    With regards to the call to the_post();.. Why do I need to iterate for the loop on a page that is not supposed to really be using any posts? With regards to get_template_part... Can you really get part of the page template from page.php? Where is 'content' defined? Where is the code located that is fetched by get_template_part above? Those are my questions for the time being.

    Thank you!

Reply

You must log in to post.

About this Topic