Support » Fixing WordPress » Get search term not on searh results page?

  • Hi,

    I would like to get the last term that was searched, but when not in the search.php page.
    For that, I know, I could use get_search_query() function, but if user clicks on a post, so in the single item. that function will retrieve an empty string.

    Any idea?

    Thanks

  • The topic ‘Get search term not on searh results page?’ is closed to new replies.