Triggering a search without using a form.
-
I have a wordpress search box up and running on my site and it works fine. However I also want to be able to call up a search direct from within a page with fixed parameters. For example, if I search for “curry” this is the action that the form generates:
https://notactuallymywebsite.com/?s=curry
What I can’t see is what code that “?s=curry” actually calls. Ideally I want to be able to do is set up a search value (eg curry)and call a function called (for example) search. Now I know how to write some custom code to do a search, but I just want to use the search that is already there and already does what I want – I just can’t see how to call it.
Thanks for any help.
- The topic ‘Triggering a search without using a form.’ is closed to new replies.