• 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 &raquo;'); ?> 
    
                                            </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 &raquo;'); ?>
    
                                            </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)
  • Wow. That’s a lot of IE conditionals? Are you sure those can’t be handles in a css conditional script?

    Anyway, are you trying to alter the blog page single view? The blog will use single.php for the template. I am wondering if since I see “Template Name: Blog” that is for a “page” template, not a blog “post”.

    You need to modify single.php to affect the blog post itself.

    And don’t use “showposts” as it is deprecated, use “posts_per_page=”.

    The blog page code you have is looking for a “Page” with a selected template of “blog” not a blog post. Does this make sense to you?

    Thread Starter AVirtualEdge

    (@avirtualedge)

    Yahhhhhhh……….I agree about the IE conditionals. But to be honest, I underbudgeted myself to help my client/friend, so if they work, they are going to stay there ??

    I’m trying to create the actual blog page, where the say, latest 5 posts will show up. You can check out the blog at https://rootandbranchom.com/blog. It’s missing three major items:

    1.) The linked post titles
    2.) The byline of who wrote the post and when it was posted.
    3.) An option at the end to read the older posts.

    The actual posts themselves look OK.

    Does this help?

    Thanks for your response ??

    But to be honest, I underbudgeted myself to help my client/friend,

    Wow, I have never heard of that? (ha! I hear ya!)

    (even when i change the post count, it doesn’t update)

    Do you mean when you change it in the query_posts() or when you change it in the admin to the default # of posts per page?
    Query posts will override the admin panel settings as you may know.

    If you have changed the query_posts in the file and you do not see the affect then maybe there is no page with that template chosen?

    Sometimes, when I have to fix someone else’s purchased theme, I have placed a little text block on a file page just to be sure I was looking at the correct file. You may want to try that?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Blog Post Titles on Custom Theme’ is closed to new replies.