[wp-trac] [WordPress Trac] #14851: Add ¨searchform-{name}.php¨ support

WordPress Trac wp-trac at lists.automattic.com
Sat Sep 11 23:54:10 UTC 2010


#14851: Add ¨searchform-{name}.php¨ support
-------------------------+--------------------------------------------------
 Reporter:  ramiy        |       Owner:                 
     Type:  enhancement  |      Status:  new            
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Template     |     Version:  3.1            
 Severity:  normal       |    Keywords:  need-patch     
-------------------------+--------------------------------------------------
 some [http://codex.wordpress.org/Include_Tags include tags] like
 '''get_header()''', '''get_footer()''' and '''get_sidebar()''' accept
 ''$name'' parametter to include header-{name}.php,footer-{name}.php and
 sidebar-{name}.php.

 but the search form include tag - '''get_search_form()''' - does not
 accept ''$name'' parametter. currently it includes only searchform.php.

 if this function will accept ''$name'' parametter, it would be easier to
 include other type search forms. this thecnic is very useful to sites that
 have several search form formats - for example one in the header, one in
 sidebar and one for footer. or an advense search form with categry select
 and post type select boxes to specific pages.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14851>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list