Pages pulling my headlines
-
I have a website and in the header.php I have this:
<?php query_posts('page_id=35'); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <?php the_content('<p class="serif">Read the rest of this page »</p>'); ?> <?php endwhile; endif; ?>The code above pulls a post.
For all sub pages (page.php) i use the following code:
<h1> <?php the_title();?></h1> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <?php the_content('<p class="serif">Read the rest of this page »</p>'); ?> <?php endwhile; endif; ?>When you view pages it will not show what is suppose to be on that page it instead shows whats suppose to be in the header.php.
Any idea what I am suppose to use to pull posts or pages if I want to include it in the header?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘Pages pulling my headlines’ is closed to new replies.