Expanding the Search include Tags?
-
I have been trying my best to learn WordPress throughout the past 6 months, and have been fairly successful with it. However, there are times when the CSS code is just eluding me. I searched the Codex and haven’t been able to figure this one out…
My SEARCH feature on my site – is not searching the TAGS or anything else beyond the title of the post, it seems?
For example, my site has a lot of images tagged “Birds” or “Bird” but it doesn’t find any of them. Only if an image had the title “Bird” would it come up.
This is the code from the searchform.php – which I believe feeds the instructions on what to search on. I’ve bolded the area I think might be the trouble, but I don’t know what code to add to make it search tags too?
<form action=”<?php echo $_SERVER[‘PHP_SELF’]; ?>” method=”post”>
<input type=”text” class=”key” value=”Search…” name=”s” id=”s” onfocus=”if(this.value==’Search…’)this.value=”” onblur=”if(this.value==”)this.value=’Search…'” />
<div class=”bt”>
<input name=”submit” type=”image” class=”search” title=”Search” src=”<?php bloginfo(‘template_url’); ?>/images/ButtonTransparent.png” alt=”Search” />
</div>
</form>Website: http://www.MichiganMoments.com
- The topic ‘Expanding the Search include Tags?’ is closed to new replies.