WordPress.org

Ready to get started?Download WordPress

Forums

the_title in <title> (4 posts)

  1. johnf
    Member
    Posted 9 years ago #

    Hello,

    I previously used 1.2 then just upgraded to 1.5 and my templates did not function. I have reworked most of it except this line:

    <title><?php the_title(); ?> :: Blog</title>

    All it displays is ":: Blog". Does that need to be included in the Loop? If so, how?

    Thanks!!

  2. vkaryl
    Member
    Posted 9 years ago #

    <title><?php bloginfo('name'); ?><?php wp_title(); ?></title> is what it looks like now in several of the themes I use.

  3. Kafkaesqui

    Posted 9 years ago #

    If you're trying to display a post's title in the title of a single post page, try this tag:

    http://codex.wordpress.org/Template_Tags/single_post_title

  4. johnf
    Member
    Posted 9 years ago #

    Ok. I am using:

    <title><?php single_post_title(); ?> :: Blog</title>

    for my pages.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.