[wp-hackers] Fooling Wordpress To Think Plugin Output Is A Page
Alex Andrews
awgandrews at gmail.com
Sun Jan 24 17:14:48 UTC 2010
The pages are too dynamic to be added to the database. Have you any
idea what would be filtered? As I said it seems there must be bits of
wp_query which correspond to the stuff that says 'this is a page
called z'.
Thanks again.
Alex
On 24 Jan 2010, at 17:04, Andy Skelton <skeltoac at gmail.com> wrote:
> On Sat, Jan 23, 2010 at 7:42 PM, Alex Andrews <awgandrews at gmail.com>
> wrote:
>> In my plugin I interrupt template_redirect to produce my own pages
>> via
>> loading my own templates. However, to trick certain bits of the
>> template into working, it would be very useful for Wordpress to think
>> these are pages proper, with titles etc. Is there some internal
>> Wordpress variable or set of variables I can set to do this? It would
>> be especially good if I could trick the plugin generated page to
>> think
>> it was a part of the normal hierarchy of Wordpress pages, ie could
>> possibly have parents etc, while not being an part of this formally.
>
> You could ferret out all of the related filters and add your virtual
> page that way. Why not just add the page to the database?
>
> Andy
> _______________________________________________
> 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