# How can I include images in my search results?

**URL:** https://community.swiftype.com/t/how-can-i-include-images-in-my-search-results/27
**Category:** Setup & Indexing
**Created:** [December 21, 2015, 4:55pm UTC](https://community.swiftype.com/t/how-can-i-include-images-in-my-search-results/27 "2015-12-21T16:55:22Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex019/uploads/swiftype/original/1X/fd652d1735c60057fa71c371375511028f9a1832.png) [@system](https://community.swiftype.com/u/system)
#### Post date: [December 21, 2015, 4:55pm UTC](https://community.swiftype.com/t/how-can-i-include-images-in-my-search-results/27/1 "2015-12-21T16:55:22Z")

</div>

> **I have a lot of different images on my website and I want my site search box to return results with those images. Will Swiftype’s custom site search engine be able to show the images in results like I want?**

Swiftype does not inherently index image files, so the usage is somewhat limited for image/file search. However, there are some work arounds depending on your engine type.

**Crawler Engines**

Since we predominantly crawl HTML content, your best means of having searchable images would be to create a unique landing page for each image. An example landing page would include some or all of the following:

- the image embedded within the page
- details about the image (title, aspect ratio, file size, available sizes, description photographer, etc)
- download links for the image

With that data in place, our crawler would be able to index those pages and enable meaningful search for your images.

**WordPress Engines**

Indexing images via the Swiftype plug-in for WordPress is a bit more direct, as you can configure your theme to update the `post_status` of the `attachment` post type from `inherit` to `publish`.

Once that change is saved and you resynchronize the Swiftype plug-in, you should find records of attachments available in site search. We’ve a relevant thread relating to post type indexing with our WordPress plug-in below:

> [@What post types will the Swiftype WordPress plugin index?](https://community.swiftype.com/t/what-post-types-will-the-swiftype-wordpress-plugin-index/96):
>
> The Swiftype WordPress plugin will index all registered post types that are not excluded from search. Typically, this means they have been [registered](http://codex.wordpress.org/Function_Reference/register_post_type) with the public flag set to true (as this is a shortcut for exclude\_from\_search being set to false) but it is possible to register a private post type that is included in search. See [get\_post\_types](http://codex.wordpress.org/Function_Reference/get_post_types) for details. The default WordPress post types that are public are page, post, and attachment. Additionally, an individual post must have a post\_statu…
