WordPress.org

Ready to get started?Download WordPress

Forums

Change Browser Page Title With Database Query (1 post)

  1. lakerstats
    Member
    Posted 1 year ago #

    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.


    http://www.lakerstats.com/season-stats/?seasonid=1213

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic