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

Chris chris.hearn01 at ntlworld.com
Sat Sep 29 23:27:29 GMT 2007

Template Search compatible might be ok, but surely people use pages and 
posts in various ways on their sites - wordpress is flexible, but 
generally one might assume that pages are for more static (unchanging, 
or not often) content, posts for more transient content...
It makes no sense to me to exclude page content - whatever the user is 
looking for may be on a post _or_ a page
they can see page content by selecting it from the menu or whatever, so 
would expect it to show up in search results - even if the result just 
shows the titles of the post/page, at least it would be there.
So please - Search => results from both posts and pages, (and showing 
excerpts where available is fine - some will make heavy use of them some 
not I guess).

P.S.  I hope the idea was not to _just_ search the excerpt for the 
results - apologies if I have missed something!

Otto wrote:
> +1 on the excerpt idea. I use the_excerpt as the meta description for
> all pages on the site. It would be very nice to be able to manually
> define this for Pages.
> On 9/29/07, Stephen Rider <wp-hackers at striderweb.com> wrote:
>> I think a combination of set_theme_capability() and Otto's suggestion
>> RE templates might be best.
>> That is: rather than indicating on a page by page basis if it's
>> compatible, do it on a  _template by template_ basis.  In the theme,
>> each page template has to have a marker that indicates "search
>> compatible".
>> Either way, I'm all for adding an excerpt field to pages, just on
>> general principle.  This could be useful for more than just search:
>> Imagine, for example, a site index page that shows the name of the
>> page _and_ the description, drawn from that field.
>> Stephen
>> On Sep 29, 2007, at 10:22 AM, Casey Bisson wrote:
>>> 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).
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
> _______________________________________________
> 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