[wp-hackers] Skip Main Query
theodor_ramisch at hotmail.com
Fri Jul 30 22:54:39 UTC 2010
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.
More information about the wp-hackers