Support » Plugins » Hacks » Querying Image Captions within the Search.php

  • I have a website that is essentially just a picture catalog of products and the search function isn’t able to find my items b/c there aren’t pages items but rather just image galleries.

    Say if I search for a product via it’s item number “310”,

    the item is the 1st one on this page

    the search currently isn’t able to find it, but if the search widget actually searched through image captions, the search would probably find it. Is there a way I could tweaked the search function to do this?

    I was looking in my theme’s search.php (search results) file and around line 8,
    this looks like this would be the spot you’d add something letting the search index the image captions, but I’m not php guru…

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Any help would be much appreciated! I’ve tried a couple of different support forums and I’ve had no luck. 🙁

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Querying Image Captions within the Search.php’ is closed to new replies.