Support » Fixing WordPress » Change Browser Page Title With Database Query

  • Well I’ve looked around the board and I’ve sort of seen some people discuss it, but no definitive way how to do it.

    I want to change the <title> at the top of the page based on the query that the user runs. See the page below for an example.

    I want the 2012-2013 added into the browser title, so it reads something like “Lakers Season Statistics – 2012-2013.” Obviously if the person is on the 1999-2000 page, then it would switch to that, and so on. I just have idea how to even begin to pull that number out to get it into the title.

    What is the best way I can do this? The tables for my site’s main database are all in the same db as WordPress if that matters.

    Hopefully my question makes sense. Appreciate any help or guidance!

  • The topic ‘Change Browser Page Title With Database Query’ is closed to new replies.