Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › CANNOT get it to exclude categories!! Done all everything you said on this forum › Reply To: CANNOT get it to exclude categories!! Done all everything you said on this forum
Thanks for fast response.
I actually deleted all of the original theme’s searchform.php bcos it was looking and returning rubbish results. So I used original WordPress searchform instead.
this is what the searchform in the current yellow header searchbar on my site is:
<div class=”searchform”>
<form method=”get” id=”searchform2″ action=”<?php bloginfo(‘home’); ?>/”>
<span class=”searchfor”><input type=”text” name=”s” id=”s” class=”s” value=” G’day! Enter quick search here by business name or keywords” onfocus=”if(this.value==this.defaultValue)this.value=”;” onblur=”if(this.value==”)this.value=this.defaultValue;” />
<small class=”text”><?php //echo ‘Pets, Beauty and Gadgets’;?> </small>
</span>
</form>
</div>
It returns most value pretty well except it won’t search in Addresses on my listing so someone looking for a generic Pet store in Birkdale returns 0 results even though there is a listing there that is located in birkdale.
Try it…you’ll see what I mean.
Can you tweak above code to make it work with your searchbar? I only need to set it once and I don’t want to change it again so I don’t need to go in and change themes etc.
Thanks!