[wp-hackers] WP_Rewrite query
wphackers at jamietalbot.com
Sat Feb 4 05:38:39 GMT 2006
-----BEGIN PGP SIGNED MESSAGE-----
> I'm trying to hook into the rewrite rules, in order to allow /library/
> to display my-plugin.php?library=true, but I'm running into some problems.
Some people have found this link helpful:
Don't know if that's code you've already seen? You probably need to have a rewrite_rules filter
and a query_vars filter. You can hook into parse_query to check if a variable has been passed (like
library=true, for instance. You can search this mailing archive for some other people that have had
this problem and some other possible solutions.
As a side note, there seem to be quite a few people having difficulty using the rewrite API at the
moment. Perhaps this is another area we could look to improve on in 2.1?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the wp-hackers