{"id":217042,"date":"2025-01-24T13:34:29","date_gmt":"2025-01-24T13:34:29","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/hintr-lightning-fast-search-suggestions\/"},"modified":"2025-01-26T11:01:12","modified_gmt":"2025-01-26T11:01:12","slug":"hintr","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/hintr\/","author":2143314,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.2.0","stable_tag":"1.2.0","tested":"6.7.5","requires":"5.8","requires_php":"7.4","requires_plugins":null,"header_name":"Hintr","header_author":"Jose Martin Cipriano","header_description":"A plugin that enhances WordPress search by providing a dropdown of search suggestions with minimal loading time for improved user experience.","assets_banners_color":"","last_updated":"2025-01-26 11:01:12","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.me\/martincipriano","header_plugin_uri":"","header_author_uri":"https:\/\/www.linkedin.com\/in\/jmcipriano","rating":0,"author_block_rating":0,"active_installs":0,"downloads":519,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.1.5":{"tag":"1.1.5","author":"martincipriano","date":"2025-01-24 13:42:14"},"1.2.0":{"tag":"1.2.0","author":"martincipriano","date":"2025-01-26 11:01:12"}},"upgrade_notice":{"1.2.0":"<ul>\n<li>Performance imporvement using a json file in the uploads directory instead of getting the posts from a custom endpoint.<\/li>\n<\/ul>"},"ratings":[],"assets_icons":{"icon-256x256.png":{"filename":"icon-256x256.png","revision":3228063,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.1.5","1.2.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3228063,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3228063,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3228063,"resolution":"3","location":"assets","locale":""}},"screenshots":{"1":"<p>Post type field in the settings determines where to pull the suggestions from.\n<em>Description: Displays post suggestions pulled from the selected post types.<\/em><\/p>","2":"<p>Custom field key input in the settings enables search using custom field value.\n<em>Description: Displays post suggestions if the keyword partially matches its custom field value<\/em><\/p>","3":"<p>Example use case.\n<em>Description: Searching for \"capacitor\" will display posts with the keyword in their title. Searching \"electronics\" will show posts where the keyword is present in the posts custom field.<\/em><\/p>"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[944,9987],"plugin_category":[],"plugin_contributors":[237385],"plugin_business_model":[],"class_list":["post-217042","plugin","type-plugin","status-publish","hentry","plugin_tags-search","plugin_tags-suggestion","plugin_contributors-martincipriano","plugin_committers-martincipriano"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/hintr\/assets\/icon-256x256.png?rev=3228063","icon_2x":"https:\/\/ps.w.org\/hintr\/assets\/icon-256x256.png?rev=3228063","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/hintr\/assets\/screenshot-1.png?rev=3228063","caption":"<p>Post type field in the settings determines where to pull the suggestions from.\n<em>Description: Displays post suggestions pulled from the selected post types.<\/em><\/p>"},{"src":"https:\/\/ps.w.org\/hintr\/assets\/screenshot-2.png?rev=3228063","caption":"<p>Custom field key input in the settings enables search using custom field value.\n<em>Description: Displays post suggestions if the keyword partially matches its custom field value<\/em><\/p>"},{"src":"https:\/\/ps.w.org\/hintr\/assets\/screenshot-3.png?rev=3228063","caption":"<p>Example use case.\n<em>Description: Searching for \"capacitor\" will display posts with the keyword in their title. Searching \"electronics\" will show posts where the keyword is present in the posts custom field.<\/em><\/p>"}],"raw_content":"<!--section=description-->\n<p><strong>Hintr<\/strong> is a WordPress plugin designed to improve search by providing lightning-fast suggestions. Easily configure which post types to pull search suggestions from. You can also show suggestions if the search keyword is found in a post's metadata, such as price, SKU, serial number, etc.<\/p>\n\n<p><strong>Features:<\/strong>\n- Effortlessly select which post types search suggestions should be pulled from.\n- Show suggestions when the search keyword is found in a post's metadata.\n- Customize search behavior for different input fields via data attributes.\n- Lightweight and highly configurable, ensuring seamless integration.<\/p>\n\n<p>This plugin is perfect for blogs, e-commerce sites, or any WordPress site that can benefit from enhanced search capabilities.<\/p>\n\n<h3>Usage<\/h3>\n\n<ul>\n<li>Automatic Application: Search suggestions are automatically applied to text inputs with the data attribute name=\"s\".<\/li>\n<li>Custom Implementation: To customize behavior, add the data-hintr attribute to a text input.\n\n<ul>\n<li>Override the default settings by assigning a JSON-formatted settings value to the data-hintr attribute.<\/li>\n<li>Example: <\/li>\n<\/ul><\/li>\n<\/ul>\n\n<h3>License<\/h3>\n\n<p>This plugin is licensed under the GNU General Public License v2.0 or later.<br \/>\nYou may obtain a copy of the license at: https:\/\/www.gnu.org\/licenses\/gpl-2.0.html<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Download the plugin file and extract it.<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress.<\/li>\n<li>Go to <strong>Settings &gt; Hintr<\/strong> to configure the plugin options.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='what%20does%20hintr%20do%3F'><h3>What does Hintr do?<\/h3><\/dt>\n<dd><p>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.<\/p><\/dd>\n<dt id='can%20i%20use%20this%20plugin%20with%20custom%20post%20types%3F'><h3>Can I use this plugin with custom post types?<\/h3><\/dt>\n<dd><p>Yes! Hintr works with any public custom post type registered on your site.<\/p><\/dd>\n<dt id='do%20i%20need%20to%20code%20anything%3F'><h3>Do I need to code anything?<\/h3><\/dt>\n<dd><ul>\n<li>No coding required when using the global settings for effortless setup.<\/li>\n<li>Fine-tune search suggestions for multiple search inputs with basic knowledge of:\n\n<ul>\n<li>Writing a JSON string.<\/li>\n<li>Using HTML data attributes.<\/li>\n<\/ul><\/li>\n<\/ul><\/dd>\n<dt id='how%20can%20i%20apply%20different%20search%20suggestion%20settings%20to%20multiple%20search%20inputs%3F'><h3>How can I apply different search suggestion settings to multiple search inputs?<\/h3><\/dt>\n<dd><p>To apply custom settings for each search input, add the <code>data-hintr<\/code> attribute to the respective <code>&lt;input type=\"text\"&gt; or &lt;input type=\"search\"&gt;<\/code> fields.<\/p>\n\n<p><strong>Here's what you can configure:<\/strong><\/p>\n\n<ul>\n<li><code>count<\/code> (int\/string): The number of suggestions to display.<\/li>\n<li><code>search_in<\/code> (array): Define the post types and corresponding metadata to search against.\n\n<ul>\n<li><code>key<\/code> (string): The post type from which suggestions will be pulled (e.g., 'post', 'page').<\/li>\n<li><code>value<\/code> (array): An array of meta keys that will be compared to the search keyword.  <\/li>\n<\/ul><\/li>\n<\/ul>\n\n<p><strong>Example json value for data-hintr attribute:<\/strong><\/p>\n\n<pre>\n{\n  \"count\": \"10\",\n  \"search_in\": {\n    \"post\": [\"meta_key_1\", \"meta_key_2\", \"meta_key_3\"],\n    \"page\": [\"meta_key_1\", \"meta_key_2\", \"meta_key_3\"]\n  }\n}\n<\/pre><\/dd>\n<dt id='will%20this%20plugin%20slow%20down%20my%20site%3F'><h3>Will this plugin slow down my site?<\/h3><\/dt>\n<dd><p>Hintr is optimized for speed, but performance can be affected by the number of posts being searched.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Added: Admin settings page for selecting post types and metadata.<\/li>\n<li>Added: REST API endpoint based on selected settings.<\/li>\n<li>Added: JavaScript to store posts in the browser's local storage.<\/li>\n<li>Added: JavaScript to show search suggestions in a dropdown.<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Added: Count limit field in settings page.<\/li>\n<li>Added: JavaScript to limit the number of suggestions displayed in the dropdown.<\/li>\n<\/ul>\n\n<h4>1.1.1<\/h4>\n\n<ul>\n<li>Apply fixes for text domain mismatch required by WordPress<\/li>\n<\/ul>\n\n<h4>1.1.2<\/h4>\n\n<ul>\n<li>Cache the database query results for getting metadata used by a post type in the settings page<\/li>\n<\/ul>\n\n<h4>1.1.3<\/h4>\n\n<ul>\n<li>Added donation link and screenshots to the readme file.<\/li>\n<\/ul>\n\n<h4>1.1.4<\/h4>\n\n<ul>\n<li>Added: Add a suggestion count to improve performance and prevent showing too many suggestions.<\/li>\n<li>Added: Added a script to prevent access to the main plugin file.<\/li>\n<li>Updated: assets\/js\/hintr.js to replace the use of hashed post. Instead check when the local storage was last updated before updating the local storage.<\/li>\n<li>Updated: Updated slimselect.js to use the uinminified version.<\/li>\n<li>Deleted: Remove load_plugin_textdomain() since it is not being used since WordPress 4.6.<\/li>\n<\/ul>\n\n<h4>1.2.0<\/h4>\n\n<ul>\n<li>Added: Added a checkbox input in the settings to allow the users to disable the suggestions from the default WordPress search.<\/li>\n<li>Added: Added a condition in the javascript before applying the suggestions to default WordPress search inputs.<\/li>\n<li>Added: Save the suggestions to a json file in the uploads directory so a query to the database isn't required every time a local storage is going to be created.<\/li>\n<li>Removed: Remove the scripts for creating a custom endpoint.<\/li>\n<\/ul>","raw_excerpt":"Enhance your WordPress site&#039;s search functionality by offering search suggestions sourced from selected post types and metadata.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/217042","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=217042"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/martincipriano"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=217042"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=217042"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=217042"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=217042"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=217042"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=217042"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}