Blog Post Titles on Custom Theme
-
Thanks in advance for any help and sharing of expertise ??
I took over finishing a site (www.rootandbranchom.com) for a good friend/client of mine, and I can’t get the blog page working correctly. The post titles are missing, as well as byline details (author, date). I’m pretty confident this has to do with the fact that page titles weren’t used in this design, but I can’t figure out how to fix it. I created a blog page template to try to fix it, to no avail. Any ideas?
Here’s the page template:
<?php get_header(); ?> <!--[if ! IE]>pagecontent-area<![endif]--> <div id="pagecontent-area"> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <!--[if ! IE]>page-content<![endif]--> <div class="page-content"> <?php the_content('Read the rest of this entry »'); ?> </div> <!--[if ! IE]>page-content<![endif]--> <?php endwhile; ?> <?php else : ?> <h2>Not Found</h2> <p>Sorry, but you are looking for something that isn't here.</p> <?php endif; ?> <?php include (TEMPLATEPATH . '/sidebar2.php'); ?> <?php get_footer(); ?>
And here’s the blog page I created that doesn’t work (even when i change the post count, it doesn’t update)
<?php /* Template Name: Blog */ ?> <?php get_header(); ?> <!--[if ! IE]>pagecontent-area<![endif]--> <div id="pagecontent-area"> <!--[if ! IE]>page-content<![endif]--> <div class="page-content"> <?php query_posts('showposts=4'); ?> <?php while (have_posts()) : the_post(); ?> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a><br /> <?php endwhile;?> <!--[if ! IE]>text-part<![endif]--> <div class="text-part"> <?php the_content('Read the rest of this entry »'); ?> </div> <!--[if ! IE]>text-part<![endif]--> </div> <!--[if ! IE]>page-content<![endif]--> <?php include (TEMPLATEPATH . '/sidebar2.php'); ?> <?php get_footer(); ?>
Thanks so much for any insight!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Blog Post Titles on Custom Theme’ is closed to new replies.