[wp-hackers] WP_Rewrite query
Jamie Talbot
wphackers at jamietalbot.com
Sat Feb 4 05:38:39 GMT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Rob wrote:
> 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.
>
Rob,
Some people have found this link helpful:
www.fabriziotarizzo.org/cache/query_redirect_rewrite.phps
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?
Cheers,
Jamie.
- --
http://jamietalbot.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFD5D3erovxfShShFARAhA9AJ0XQQbRB7t6nfs/RjsXeUT2XpgZAQCeNMdg
YRaPmTqz9sDDFsX76temg/Q=
=AE1t
-----END PGP SIGNATURE-----
More information about the wp-hackers
mailing list