Reply To: Blog page will not display the blog entries

Home Forums Main Forum Blog page will not display the blog entries Reply To: Blog page will not display the blog entries

#41357
Gary Pfeffer
Participant

I figured this one out, but still need a solution. I had previously altered content.php and took out this section:

<?php if ( !is_single() ) { ?>

<h2 class=”entry-title” itemprop=”headline”>
” title=”<?php the_title(); ?>” rel=”bookmark”><?php if(! has_post_thumbnail()) { the_title(); } ?>
</h2>

<?php } ?>

because it was creating a redunant title. For pages, The title was showing up in the lighter gray area (which looks nice), but it was also showing up below that in the content area with the actual post. It just looked wrong to see the title twice so I took it out of content.php. So, as a consequence, in a post excerpt, you can not click the title to get to the article, if it isn’t even there. So, I would need the above code snippet, to somehow check to see if we are dealing with a post or a page, and then NOT use the code for posts, but use it for pages.

The title redundancy for pages, really does not look aesthetically pleasing.