[theme-reviewers] searchform.php, why?
Yulian Yordanov
yul.yordanov at gmail.com
Mon Sep 5 11:27:27 UTC 2011
The theme has to have search-template in order to display search
resultsproperly. IF search form is included so it has to be done by
using *get_search_form()*
NOT 'include (TEMPLATEPATH . "/searchform.php");' NOT
On 05.09.2011 12:21, Daniel Fenn wrote:
> Hello all,
> Right now after taking a break I got my head stuck down into my theme
> again and all is good.
> Reading over the guidelines reads:
> -------
> Search Form: Must be included using get_search_form()
>
> Themes may optionally customize the search form, as searchform.php
> --------------
> May I ask why that is the case? I am asking right now because what
> happen in a case like mine where you need different markup for search
> bar in the header, different markup in the sidebar and last and not
> lease, different markup on the search results page.
> Now I recall that with the wordpress comments area it used to be where
> you had to write up your code by yourself and now it is all done by
> doing "comment_form()
> <http://codex.wordpress.org/Function_Reference/comment_form>". I fully
> understand that case, and wordpress give some control over it so it
> not all that bad.
> But with the search form, I am realy lost on that one.
> Thanks
>
>
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
--
????? ???????? | Yulian Yordanov
post-scriptum.info <http://post-scriptum.info/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20110905/c183cb4f/attachment.htm>
More information about the theme-reviewers
mailing list