[wp-hackers] Skip Main Query
Michael Pretty
mpretty at voceconnect.com
Sat Jul 31 01:31:08 UTC 2010
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
prettyboymp
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
>
More information about the wp-hackers
mailing list