I have a custom post type of
show and I am trying to create a search input where the following occurs:
User can start typing a few letters and auto completed suggestions (based on the post title) populate.
Next to (in same row as) the post title for each that populates based on the users typing, I would like to display info from the custom field
show-datethus an example of a populated result would be: "Stack Show (Jan 12, 2018)"
When user clicks one of the options, it automatically loads the page of that post as opposed to having to click a submit button etc.
I have researched all the posts on stack about this topic for the past few days and can not get anything working. Below is the most recent code I have been trying. I am only posting this code as what I have tried as it is the most recent method whereas older methods I have found on stack may not work now based on changes in WP. Please note that nothing populates at all when typing in the input box (I have seen some users say the problem they run into is it populates ALL posts...for me nothing happens at all).
and here is my markup, not sure what could go wrong here but just in case...
<input id="se_search_element_id" type="text">