• Resolved thejonson

    (@thejonson)


    I am needing to add the post title to my footer I have put the following in and it works:

    <h2><?php the_title(); ?></h2>

    But does anyone know how I can only display the title ONLY if I’m viewing a post, not a page/category/tag/user etc.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Display title only for a post’ is closed to new replies.