Wordpress search form
In Wordpress, when I try to use the get_search_form();
code more than once, it will only ever display it once.
I use it once in the header (nav area), and one in the 404 page and also in one in the ELSE clauses (if posts etc not found).
I can only presume this is because of the form having id="s"
and WP only allows once instance because of this?
I've also tried using include (TEMPLATEPATH . '/searchform.php');
but has the same issue.
Any ideas?
greg posted this at 16:15 — 30th May 2009.
He has: 1,581 posts
Joined: Nov 2005
Never mind.
include (TEMPLATEPATH . '/searchform.php');
is now working, and typically I changed nothing extra...one day I'll find those gremlins and I swear they wont like what I have planned for them...Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.