Title: Caption search
Last modified: June 24, 2018

---

# Caption search

 *  Resolved [mlorim](https://wordpress.org/support/users/mlorim/)
 * (@mlorim)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/caption-search/)
 * How do I use search for the text in an image _caption_?
    e.g. a caption that 
   is an art piece description under an image.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcaption-search%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * (@msaari)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/caption-search/#post-10431090)
 * Looks like it’s working: searching for “Shorebreak” or “Seagrapes” finds the 
   post with those paintings. What kind of searches are not working as expected?
 *  Thread Starter [mlorim](https://wordpress.org/support/users/mlorim/)
 * (@mlorim)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/caption-search/#post-10431130)
 * Thanks for your reply.
    I could find the post title with the search word, but
   I was wanting a visitor to get search results for individual images by caption
   without scrolling and searching through the whole post and visually scan for 
   it, which WordPress already does.
 *  Plugin Author [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * (@msaari)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/caption-search/#post-10433556)
 * If you want Relevanssi to return individual images instead of posts, you need
   to adjust the settings so that Relevanssi indexes the “attachment” post type.
   That should help.
 *  Thread Starter [mlorim](https://wordpress.org/support/users/mlorim/)
 * (@mlorim)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/caption-search/#post-10434197)
 * Thanks very much.
    I selected Post Types|attachment and Custom fields|Some|_wp_attachments_image_alt
   and reindexed. That finds the image alt text linked to the image filename.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Caption search’ is closed to new replies.

 * ![](https://ps.w.org/relevanssi/assets/icon-256x256.png?rev=3529670)
 * [Relevanssi - A Better Search](https://wordpress.org/plugins/relevanssi/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/relevanssi/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/relevanssi/)
 * [Active Topics](https://wordpress.org/support/plugin/relevanssi/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/relevanssi/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/relevanssi/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [mlorim](https://wordpress.org/support/users/mlorim/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/caption-search/#post-10434197)
 * Status: resolved