how to create a custom live search in WordPress from scratch
For creating live search just need send a GET request to wp-json no need to make a new query just use this URL in ajax request: So ajax code should be like this: and the HTML search input should be like this: you must turn off the autocomplete of input