[Resolved] Can I use the posted search variables in my own custom php?
I’m pretty new to customizing WP, so apologies in advance for anything obvious I’m not getting –
I’ve got the WP Ultimate Search bar working great in the right-side widget area of my header. I’m directing the results to my “Search” page in “Pages”.
In “Pages”, I’m using include me to load up some a custom lookup.php template:
In “lookup.php”, I’m trying to echo out the value of whatever the user typed into the search field of WP Ultimate Search.
The idea is that I’d use that variable’s value to do my own custom lookup against some custom database tables I’ve got, and return some simple results in my own format.
So, I guess I really just used WP Ultimate Search for the good-looking bar in my widget area, and I’m sure that’s an under-utilization of the power of WP Ultimate Search.
But if you wouldn’t mind telling me anyway if there’s a simple variable you can give me the name of to get back the keyword typed into that field, ie
or whatever the variable name is that gets “test” if I just submit “test” to WP Ultimate Search, that’d be awesome!
And if I’m way off how I should be doing this, I guess that’d be fair to tell me too. Ha
Thank you very much!!
- The topic ‘[Resolved] Can I use the posted search variables in my own custom php?’ is closed to new replies.