[wp-hackers] Page searching examples [was: 2.4 planning
discussion]
Casey Bisson
casey.bisson at gmail.com
Sat Sep 29 15:22:46 GMT 2007
set_theme_capability('full_search',true) sounds like a reasonable
solution to me, but I think we'll also need to put the excerpt field
on the Page editing screen so that people can have a chance at
writing reasonable synopses of their pages (espy those with forms).
On Sep 29, 2007, at 1:33 AM, Ryan Boren wrote:
> Some themes display the entire post content in searches. Pages
> with forms and other stuff in them will make search results look
> screwy. I think we'll need to add a means for themes to signal
> they are compatible with mixed search results. Perhaps something
> like set_theme_capability('full_search', true) that can be called
> from the theme's functions.php. If the capability is not true, we
> either exclude non-posts from the search results or filter the
> content of non-posts in the results.
More information about the wp-hackers
mailing list