[wp-hackers] Restrict search results?

Viper007Bond viper at viper007bond.com
Sat Jul 19 10:58:17 GMT 2008


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?

-- 
Viper007Bond | http://www.viper007bond.com/ | http://www.finalgear.com/


More information about the wp-hackers mailing list