[wp-hackers] Excluding pages/posts from search

Alex King lists at alexking.org
Wed Nov 21 22:57:47 GMT 2007


For the scenarios I've worked on, a boolean would work for pretty much  
all of these situations. Either it's a "normal" page that should show  
in searches, lists, etc. or we usually want to hide it from all of  
these.

Cheers,
--Alex

Personal   http://alexking.org
Business   http://crowdfavorite.com
Schedule   http://alex.myfreebusy.com



On Nov 21, 2007, at 11:34 AM, Stephen Rider wrote:

> He beat me to it.  +1 on everything Hacker Scot just said.
>
> For the "Thank You' Page example, we would also need a means for  
> arbitrary pages to be excluded from Page Lists.  Yes, again, there's  
> the exclude list, but a boolean (exposable vi plugin) would be nice  
> here as well.
>
> Maybe our 2-state boolean can be a three-state variable:  
> ListsAndSearch|ListsOnly|None
>
> ...or am I over-thinking things again?
>
> Stephen
>
> On Nov 21, 2007, at 12:07 AM, Hacker Scot wrote:
>
>> What if there were a boolean "searchable" field in each of  
>> wp_posts, wp_comments, wp_users, and possibly other tables as  
>> necessary.
>>
>> 0 = not searchable
>> 1 = searchable
>>
>> WP could keep its current default search behavior by setting these  
>> values to the current standards (posts yes, pages no, comments no).  
>> But with that small amount of metadata available for all content  
>> types, a good Search Enhancer plugin could do all of:
>>


More information about the wp-hackers mailing list