[wp-hackers] Restrict search results?

Jason Webster jason at intraffic.net
Sun Jul 20 05:13:06 GMT 2008

I have achieved this by assigning the special pages their own post_type 
field in the database, and applying some filters to the posts_* hooks. I 
can elaborate more, if you'd like, however I'm about to pass out from 


Viper007Bond wrote:
> I'm in the process of converting one of my half WordPress-powered sites to
> be fully WordPress. It currently uses a custom table and custom scripts to
> output Page-like content. I will be transitioning this data to be actual
> Pages and meta content.
> However, I want to be able to search these Pages and only these Pages
> (rather than posts and other Pages). Is this possible? Or do I need to
> manually query?
> More importantly though, how can I exclude these Pages for when I want to
> search the posts (site news)?
> Is it just a matter of playing with WP_Query or am I SOL?

More information about the wp-hackers mailing list