• Resolved ifelse

    (@ifelse)


    Small question: Does anyone know if there is a WP function for retrieving the search terms?

    FYI, I’ve been doing the following:

    <?php $s_arr = get_query_var('search_terms');
    echo count($s_arr) . ' search results for ';
    for ($i = 0; $i < count($s_arr); $i++){
    echo $s_arr[$i];
    }

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘retrieving the search terms’ is closed to new replies.