[wp-hackers] Searching in general

Otto otto at ottodestruct.com
Wed Oct 3 20:39:28 GMT 2007


Search.php is already in the template hierarchy. It's the search
results page. :)

http://codex.wordpress.org/Template_Hierarchy#Search_Result_page

-Otto

On 10/3/07, Peter Westwood <peter.westwood at ftwr.co.uk> wrote:
> I've just been reading through the latest bits of the (page)
> searching discussion.
>
> How about the following solution:
>
> Add a new file to the files you can put in your theme - search.php.
>
> Add new template tags and loop for the search results.
>
> Search *everything* - Posts, Pages, Comments, Author names etc (or at
> least make it easy for plugins to populate the search results.
>
> Backward compatibility would be provided by if no search.php then we
> use index.php and post only searching.
>
> Cheers
>
> westi
> --
> Peter Westwood <peter.westwood at ftwr.co.uk>
> Blog: http://blog.ftwr.co.uk/
> WordPress Plugins: http://blog.ftwr.co.uk/wordpress/
>
>
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list