[wp-hackers] Search form issue

Daniel Fenn danielx386 at gmail.com
Tue Sep 6 00:44:21 UTC 2011

Ok but if I want the theme to be put up on wordpress.Org then I must
follow the guideline. Now how can I code it so that it can tell if it
being called from the header or sidebar file?

On 06/09/2011, John Blackbourn <johnbillion+wp at gmail.com> wrote:
> 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.
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers

Daniel Fenn

More information about the wp-hackers mailing list