• I am using the “wp_title” on the pages.

    echo '<title>' . wp_title( '', false ) . "</title>\n";

    but it is showing the page title and blog title in one line without space. Page Title(About US), Blog Title(My Blog).

    About UsMy BLog

    Thanks for help.

Viewing 1 replies (of 1 total)
  • Hi,

    wp_title is for Blog’s title.
    Where as you need to use the_title() or echo get_the_title() for post/page titles.

    You should use wp-title in your theme header.php file in <head> section of the html.

Viewing 1 replies (of 1 total)
  • The topic ‘Hide blog title in "wp_title"’ is closed to new replies.