[wp-hackers] Update Plugin Rewrite Rules
Jamie Talbot
wphackers at jamietalbot.com
Fri Feb 3 01:20:05 GMT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Mr.Brown wrote:
> I try to semplify the question: it is possible in 2.0.1 to pass a
> variable to a Page in this way
> mysite.com/page-slug/var/ ???
> It is possible using rewrite rules? And in which way it is possible?
Yes, it is possible:
I can't explain it much more but you can see a demonstration here:
http://dev.wp-plugins.org/file/gengo/trunk/gengo/gengo.php
Look at the constructor which adds the filters, and the functions rewrite_rules() and query_vars();
Basically, I do exactly the same as that demo code, which works for me. I'm not sure why it's not
working for you, sorry.
Good luck,
Jamie.
- --
http://jamietalbot.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFD4q/ErovxfShShFARAh3dAJ41h/5oFZG9SIudEUOiw08rBcoaEwCeOM7C
C11rpzuzjWMYbrVMG6NrZs4=
=1O9E
-----END PGP SIGNATURE-----
More information about the wp-hackers
mailing list