• 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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter sniedzwiecki

    (@sniedzwiecki)

    I should have mentioned my website – that would have helped!


    http://www.MichiganMoments.com

    There’s a plugin called Search Everything, you might want to have a look for it.

    Thread Starter sniedzwiecki

    (@sniedzwiecki)

    Hi Gangleri,

    I did see that, but it says there’s a lot of trouble with it yet (the developer says it’s not finished?)

    There must be just one little bit of coding to force it to search tags too… I just know it!!!

    Darn it Jim, I’m an artist, not a programmer 😉

    I use search everything without problems, but you can also download the plugin and look at the code for the inspiration that you’re looking!

    Search Everything created problems for me. It is not stable. I need a function like S.E. but, do not need the problems. Went to one of my sites one day and “no pages found” was all I saw. Logged in and the pages or posts would not show up in edit either, just their counts. In the error log I discovered lines and lines of:

    [29-May-2009 22:04:47] WordPress database error Unknown column ‘ctax.term_id’ in ‘where clause’ for query SELECT wp_posts.* FROM……etc etc… Which clued me into what was causing the issue.

    I de-activated search everything ad the site was fine. EXCEPT my site obviously cannot be searched by tags now which was the whole deal.

    I have that plugin on about 10% of my sites. I will be monitoring them closely. The site where it failed was high traffic and many searches were being performed. Wondering if some malicious code was entered in the search box and in there lies Search Everythings vulnerability? Perhaps the sheer amount of searches caused the error? There were MANY.

    This has forced me into finding another solution so tags can be searched. Tags are useless to me without search-ability.

    I hate to post here without offering a solution so, I will find one and post when I succeed.

    Any offerings of additional solutions are welcome!

    First however, I will follow Gangleri’s advice and see if there is a snippet of code in S.E. that does what I need. I really do not need all the features of S.E..

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Expanding the Search include Tags?’ is closed to new replies.