Have a custom post type containing custom fields eng-name (single line) and eng-name-url (url)
I want a full text search box to search eng-name (or part of) which produces a dropdown of results, when a result is selected then redirect to the eng-name-url
Basically, when you search with any keyword - it will display the results and with that result you can display the "eng-name-url" field or whatever field you want to display.
There is no such option to display it as dropdown as you want but you can list the found post and with those found items you can display the "eng-name-url" field.
Hi Minesh, Thanks for your reply.
I've created custom fields, built the Relevanssi indexes and added a view and but the search isn't working, - returns "No items found".
Appreciate it if you could take a look.
Can you please share all required details what custom field you created and where you added the text search and share admin access details.
Also, what search keyword I should use that should produce the results and what is your expected results.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
ok, I created a new view - eng-name-srch - with the changes you suggested.
It's still not redirecting to eng-plant-url when clicking on a search result.
Also I don't want to see a list of all Eng-name before pressing Search button
Now, regarding search, for text search you will require to use the custom search option "Full page refresh when visitors click on the search button" as text search requires submit button and you also want to hide the result until user search.
when page loads first I've added the view as given under to your home page content template:
=> hidden link
I've succeeded to make the results clickable and redirect to the correct url (by inserting a link in the View output editor) but between clicking the search button and receiving result(s) takes a long time (around 8 seconds). There's around 640 english name posts, any ideas how to speed this up?
I checked the custom field group listing page:
- hidden link
And I found that the custom field group you mentioned was set to display with ALL post types. Now, I've set the "Complaint" custom field group to display with "Complaint" post type.
You can set from custom field group edit page that you want to display the custom field group with what post type.
Please open a new ticket with every new question you may have. Thank you for understanding.