How to Set Is_Search to True (2 posts)

  1. herold
    Posted 9 years ago #

    I have a custom search and the plugin search meter, which stores the search keywords. However it won't work with my custom search.

    In the plugin is a if statement that looks if there was a search done:

    if (is_search) {

    For some reason the outcome is not true. Is there anyway to set this manually to true?

  2. Austin Matzko
    Posted 9 years ago #

    Usually it's true when $_GET['s'] is set (because the name of the search form input is 's').

Topic Closed

This topic has been closed to new replies.

About this Topic