[wp-hackers] Restrict search results?
DD32
wordpress at dd32.id.au
Sun Jul 20 09:32:10 GMT 2008
Just a thought, Would it be possible to assign these pages a custom
taxonomy(like a category or tags), and have your search page limit it to
items within that taxonomy?
Another method i can think of, Which most likely will not work for you, Is
to assign the pages to have a parent page which only acts as a stub,
Allthough it takes a bit of effort to remove the stub from the permalink
for the page..
On Sun, 20 Jul 2008 19:25:23 +1000, Viper007Bond <viper at viper007bond.com>
wrote:
> 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
>> exhaustion.
>>
>> -Jason
>>
>> 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
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>
>
>
>
More information about the wp-hackers
mailing list