page title vs post title
-
is it possible to not show page titles on any page, but show the post titles on the blog page?
Currently I use a separate page template for my blog page:
<?php while (have_posts()) : the_post(); ?> <div <?php post_class() ?> id="post-<?php the_ID(); ?>"> <div id="poststyle"> <h2 class="post"><?php the_title(); ?></h2> <div class="entry"> <?php the_content('Read the rest of this entry »'); ?> </div>this one allows the title, but for my regular pages, i comment out the h2 class post line of code. Is there an easier or better way to accomplish this? thanks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘page title vs post title’ is closed to new replies.