WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] wp_title breaks website (4 posts)

  1. InterfaceLeader
    Member
    Posted 3 years ago #

    For some reason, when I try and add

    <title><?php wp_title(''); ?></title>

    to my header.php it breaks the entire site. Code loads up until <title> and then blanks. It doesn't happen with other themes. I've tried disabling all plugins, and it makes no difference.

    When I remove that line, everything seems to work.

    Any idea what it could be?

    Here is my code:

    [code moderated per forum rules - please use the pastebin]

  2. InterfaceLeader
    Member
    Posted 3 years ago #

    FYI, I have updated to the latest version disabled all plugins etc. It's definitely a theme issue, but I have no idea what other code could be in the theme to cause a conflict with such a basic tag?

    Any help, or ideas of where to look, would be appreciated.

  3. InterfaceLeader
    Member
    Posted 3 years ago #

    My code on pastebin: http://pastebin.com/z0taXNHk

  4. InterfaceLeader
    Member
    Posted 3 years ago #

    For anybody who has a similar problem - it was some code in my function.php that triggered it. It was attempting to use wp_title to call to a plugin I had deactivated/deleted.

    Now resolved.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags