[wp-hackers] Search form issue

John Blackbourn johnbillion+wp at gmail.com
Mon Sep 5 23:55:42 UTC 2011


On 5 September 2011 23:47, Daniel Fenn <danielx386 at gmail.com> wrote:
> Hello all,
>
> I am currently working on a new version of my wordpress theme, and I am
> running into a serious issue. The theme guideline says that I must use
> "get_search_form();" to display the search form. Now I am running into an
> issue where the form will need different markup for the header, sidebar and
> search result page. (No I am not kidding).

You don't need to use get_search_form() at all if you don't want to.
If your theme needs different search forms then go ahead and mark them
up yourself and use WordPress' conditionals to display the one you
need.


More information about the wp-hackers mailing list