[wp-hackers] Restrict search results?
viper at viper007bond.com
Sun Jul 20 09:25:23 GMT 2008
That opens a whole other can of worms though for what I'm doing when it
comes to displaying and managing the content. I might as well stick to my
current custom scripts.
On Sat, Jul 19, 2008 at 10:13 PM, Jason Webster <jason at intraffic.net> wrote:
> 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?
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
Viper007Bond | http://www.viper007bond.com/ | http://www.finalgear.com/
More information about the wp-hackers