Hintr enhances your search input with a dynamic list of suggestions. It allows you to retrieve suggestions from specific post types and display posts when the search keyword matches their metadata.
Yes! Hintr works with any public custom post type registered on your site.
To apply custom settings for each search input, add the data-hintr
attribute to the respective <input type="text"> or <input type="search">
fields.
Here's what you can configure:
count
(int/string): The number of suggestions to display.search_in
(array): Define the post types and corresponding metadata to search against.key
(string): The post type from which suggestions will be pulled (e.g., 'post', 'page').value
(array): An array of meta keys that will be compared to the search keyword.Hintr is optimized for speed, but performance can be affected by the number of posts being searched.