Hi I'm attempting to create my own custom template that will have a format like this:
<?php get_header(); ?>
<div id="container">
<div id="top-half">
<!--fixed content here that is stored in the page template-->
</div>
<div id="bottom-half">
<!--Content pulled from the actualpage that has this template assigned to it-->
</div>
</div>
<?php get_footer(); ?>
Right now I'm using <?php the_content(); ?>
and instead of pulling the page content, it's pulling a specific post from my post list. I'm not quite sure why this is happening.
UPDATE: The code below was located in a widget that was being processed just before the Wordpress loop took effect in my template. I didn't reset my query using wp_reset_query();
so Wordpress displayed only a single post.
<?php query_posts('p=63'); ?>
<?php while (have_posts()) : the_post(); ?>
<?php the_content(); ?>
<?php endwhile;?>
wp_reset_query()
fixed your problem, but that doesn't seem to answer the question you've asked. I think you either need to be more specific or expand your code snippet. Since this site tries to leave behind "canonical" answers that will help other people, it's important to help the community by asking well-worded, specific questions. – mrwweb Jun 21 '12 at 0:12