Ready to get started?Download WordPress


cleaning title for sigle post (4 posts)

  1. xinfo
    Posted 8 years ago #


    like to know how to show the title for the blog when viewing single post , i need title to be post title only ,i get post title and blog Description

  2. TwoMotifs
    Posted 8 years ago #

    You'll need to change the title in your template file (probably header.php), and use something like:

    if (is_single()) { the_title(); } else { what you currently have }

  3. xinfo
    Posted 8 years ago #

    have updated my title some thing like this

    <title><?php wp_title(' '); ?><?php if(wp_title(' ', false)) { echo ' · '; } ?> xinfo - Online Latest Gadget Information </title>

    when i visit single post it show post title followed by home page title also i like to show only post title when viewing the single post

Topic Closed

This topic has been closed to new replies.

About this Topic