I have a navigation menu, and I need to change the ID of the tabs on the menu based on the name of the current page. For example: if the page title is ‘Screenshots’, run some code to include ‘id=”activetab”‘ in the anchor for the page title. Is there any way I can get the title of the page outside the loop? Preferably without a query. I tried var_dump()ing $_GET, but was given an empty array which is odd given that the AskApache RewriteRules viewer shows that page titles should be rewritten to index.php?pagename=$1.
- The topic ‘Page title from $_GET variables’ is closed to new replies.