WordPress.org

Ready to get started?Download WordPress

Forums

Get search term not on searh results page? (1 post)

  1. maorb
    Member
    Posted 3 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic