Blog Page while using Static Page?
-
I have set my installation to use a static page named “home”. I set the blogs page to a page labeled “news” and created that template file in news.php with a standard loop. However we have a problem. Only the content is displayed within this loop – no titles. To get an example visit http://www.quadraliberals.ca/beta/news
The loop is:
<?php if (have_posts()) : ?><?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<p><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></p>
<h2>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></h2>
<?php the_content('Read the rest of this entry »'); ?>
</div>
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« Older Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
</div><?php else : ?>
<h2 class="center">Not Found</h2>
<p class="center">Sorry, but you are looking for something that isn't here.</p>
<?php get_search_form(); ?><?php endif; ?>
The topic ‘Blog Page while using Static Page?’ is closed to new replies.