Search Form
Purpose
Use the Search Posts module to let visitors search a custom post type (and optional filters), then land on a Theme Builder search results layout with Archive Loop.
For instant suggestions while typing, see Live search and Auto suggest.
Set up the search form
- Open the page, post, or Theme Builder layout where the form should appear.
- Add the Search Posts module and set Search Post Type under Main Options. See the Search Posts module reference for every setting.
- Add a Search Item for the keyword field (and any other filters you need).
- Style the module under the Design tab (text, icon, alignment, sizing).
- Go to Divi Engine → Machine Settings → Search settings and enable Use Divi Machine Search, then choose common fields and ACF groups to include.
- Create a Search Results Theme Builder template with Archive Loop and your custom loop layout.
- Optional: assign a No Results layout on the Archive Loop.
Live search and Auto suggest
| Feature | What visitors see | Setup |
|---|---|---|
| Live search | Rich post/product dropdown (title, image, price, pagination, layouts) | On the Text Search Filter Posts Item (or Search Posts child), turn on Live search (post results). Machine-only. |
| Auto suggest | Fast category/tag/phrase suggestions | Enable and rebuild the phrase index under Divi Ajax Filter → Auto suggest, then turn on Auto suggest on the Text Search item. |
| Site search forms | Live search on Divi/theme search forms | Machine Settings → Search settings → Enhance site search forms with live search |
Search Posts dropdown only
Search Posts live search shows results in a dropdown only. To refresh a grid below the field while typing, use Filter Posts + Archive Loop (and optionally Update archive while typing).
Related settings
- Allow live search for Search Posts modules — Site-wide kill switch in Machine Search settings.
- Opt out of a single enhanced form with
data-dmach-live-search="off"on the form or field.
What's next
- Live search — Rich dropdown, Search Posts, and site forms
- Auto suggest — Phrase index and lightweight suggestions
- Search Posts module — Full module reference
- Catalog index — Faster filtered archives (Ajax Filter)