Tag Info

New answers tagged

4

You need to place the following code in your theme's search.php file. <?php $search_query = get_search_query(); if ( $search_query == 'gold' ) { echo 'my gold ad'; } else if ( $search_query == 'oil' ) { echo 'my oil ad'; }



Top 50 recent answers are included