[wp-hackers] Skip Main Query
theodor_ramisch at hotmail.com
Sat Jul 31 11:25:37 UTC 2010
the init hook is a little bit to early. I want to use the rewrite system of WordPress and things like query_vars are not available at this point yet, so I would have to implement that by myself using server variables like REQUEST_URI.
> Date: Fri, 30 Jul 2010 21:31:08 -0400
> From: mpretty at voceconnect.com
> To: wp-hackers at lists.automattic.com
> Subject: Re: [wp-hackers] Skip Main Query
> If you don't need anything from the initial query, is there a reason you
> don't just take over earlier, like 'init'? Most everything should be
> loaded at that point.
> Michael Pretty
> On 7/30/10 6:54 PM, Theodor Ramisch wrote:
> > Hi,
> > I'm writing a plugin which should display data from its own tables in XML. It does not rely on any posts.
> > To reach my plugin, I've added query_vars, the rewrite rules and listen on template_redirect for the parameters.
> > No I've noticed that WordPress still queries the posts from the start page. Is there a way to avoid that? Since I don't need the posts, I don't want to make that query.
> > Bypassing WP completely using mod_rewrite rules is not an option, since I need to have access to the database, permissions and so on.
> > Thanks,
> > Theodor
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers