WordPress.org

Ready to get started?Download WordPress

Forums

Querying Image Captions within the Search.php (2 posts)

  1. jamarwright
    Member
    Posted 3 years ago #

    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.

    http://www.tuscanimports.com/

    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. :(

  2. jamarwright
    Member
    Posted 3 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic