[wp-hackers] Page searching examples [was: 2.4 planning discussion]

Doug Stewart zamoose at gmail.com
Wed Oct 3 17:34:08 GMT 2007


Instead of simply creating a unitary search function, why not create
separate template functions like

post_search_results()
page_search_results()
tag_search_results()
category_search_results()
attachment_search_results()

...etc.?

Or is there a desire to have all the search results returned in a
single results object for some reason?

I'd be down with the more granular approach -- theme devs could then
have index.php?s=blahblahblah return results similar to what Apple's
Spotlight does, breaking the results down by relative content type
(or, in our case, it'd be relative context type).


-- 
-Doug

http://literalbarrage.org/blog/


More information about the wp-hackers mailing list