I have the Exec PHP plugin and am running a PHP script inside pages to let users lookup things in a database (not the WP database). The user enters a search string and gets a list which comes out of the database.
Would it be possible to then (on the fly) also change the <title> <description> and <keywords> of the result page, so that it reflects the content of the page? For example if the user searches with the word “fish”, then the <title> of the page should become something like “Search results for: Fish”, and the word “fish” should of course be in the list of keywords.
- The topic ‘Can I use PHP in a page to change title, description and keywords’ is closed to new replies.