the_title()
-
Hi guys,
I’m a newbie and don’t know much of a programing either, but I want to learn how to create custom templates for WordPress.I am calling content on my page with a loop like this
<?php if (have_posts()) : while (have_posts()) : the_post(); echo '<h2>'; the_title(); echo '</h2>'; the_content(); endwhile; endif; ?>
but this means that I see title on all the pages not only on posts. So I would like to remove title for static pages with certain IDs and leave title only on a page with blog posts. How can I achieve this?
Thanks
AB
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘the_title()’ is closed to new replies.