Jump to content
Sign in to follow this  
jcpe

Titles don't show in Blog

Recommended Posts

jcpe

I changed or cut out a setting in my WhiteHousePro blog, and now I can't see the titles. I did it over a year ago, and cannot remember for the life of me where the snippet of html was that I cut out to get it this way. Would really like your help on this. Thanks! http://www.whiteroofproject.com/news

Share this post


Link to post
Share on other sites
kastelic

If you look at library/_posts.php at line 32 you should have this:

								

<?php the_title(); ?>

<?php _e('On',TDOMAIN);?> <?php the_time(get_option('date_format')); ?>, <?php _e('in',TDOMAIN);?> <?php the_category(', ') ?>, <?php _e('by',TDOMAIN);?> <?php the_author(); ?>
[/code]

Share this post


Link to post
Share on other sites
jcpe

Hey, thanks for the answer! I really appreciate it. Strangely enough ~ that part of the code is in _posts.php it must be somewhere else.

Share this post


Link to post
Share on other sites
kastelic

Hmm, it could be somewhere else in the file. Here's the contents of the entire file as I have it so you can compare:

	<?php if (!is_404() && have_posts()) : while (have_posts()) : the_post(); ?>
		<?php if(is_single()):?>
			
<?php previous_post_link('%link') ?> <?php next_post_link('%link', 'next') ?>
<?php endif;?>
id="post-<?php the_ID(); ?>"> <?php if(!is_page()):?>
<?php if(pl_show_thumb($post->ID)): ?> <?php elseif (get_post_meta($post->ID, 'thumb', true)): ?> <?php $postimageurl = get_post_meta($post->ID, 'thumb', true); ?> <?php endif; ?>

<?php the_title(); ?>

<?php _e('On',TDOMAIN);?> <?php the_time(get_option('date_format')); ?>, <?php _e('in',TDOMAIN);?> <?php the_category(', ') ?>, <?php _e('by',TDOMAIN);?> <?php the_author(); ?>
<?php if(pl_show_excerpt($post->ID)):?>
<?php the_excerpt(); ?>
<?php endif; ?>
<?php endif;?> <?php if(pl_show_content($post->ID)):?>
<?php if(pagelines('pagetitles') && is_page() || is_page_template('page-feature-blog.php')):?>

<?php the_title(); ?>

<?php endif;?>
<?php the_content(__('Continue reading »',TDOMAIN)); ?>
<?php wp_link_pages(__(' Pages:', TDOMAIN), '', __('number', TDOMAIN)); ?> <?php edit_post_link(__('Edit',TDOMAIN), ' ', ''); ?>
<?php the_tags(__('Tagged with: ', TDOMAIN),' • ',' '); ?>
<?php if(pagelines('authorinfo') && is_single()):?> <?php get_template_part('library/_authorinfo');?> <?php endif;?> <?php endif;?> <?php if(!is_page()) get_template_part('library/_post_footer');?>
<?php if(is_single() || is_page()):?> <?php get_template_part("library/_contentsidebar");?>
">
<?php comments_template();?>
<?php endif; endwhile; ?> <?php get_template_part('library/_pagination');?> <?php else : ?>
<?php if(is_404()):?>

<?php _e('Error 404 - Page Not Found',TDOMAIN);?>

<?php else:?>

<?php _e('Nothing Found',TDOMAIN);?>

<?php endif;?> <?php _e('Sorry, what you are looking for isn't here.', TDOMAIN);?>
<?php get_template_part ('library/_searchform'); ?>
<?php endif; ?> [/code]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×