Support » Fixing WordPress » the_title()

  • Resolved ABoooo


    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

    if (have_posts()) :
    while (have_posts()) : the_post();
    echo '<h2>';
    echo '</h2>';

    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?


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.