wp not outputing whole of template
-
Hi,
I have an about page that uses a template I have created. The template is called
about.php
For some reason, the template isn’t outputting the whole page (my test page).
Here’s my
about.php
file:<?php /* Template Name: About */ ?> <?php get_header(); ?> <?php while (have_posts()) : the_post(); ?> <?php $banner_text = get_post_meta($post->ID, 'banner_text', true); ?> <div id="leader"> <h2><?php echo $banner_text; ?></h2> </div> <div id="content"> <?php the_content(); ?> <?php endwhile; ?> <div id="extras"> <h3>From the blog</h3> <h3>Stuff from the web I've bookmarked</h3> </div> </div> <?php get_footer(); ?>
As you can see, the content of the
extras
div isn’t being displayed. Theextras
div is separate because I’m going to use a couple of plugins there.Thanks,
Leon
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘wp not outputing whole of template’ is closed to new replies.