Need help regarding wordpress's wp_rewrite function
Posted: Fri Feb 26, 2010 5:58 am
Hello,
I have installed wordpress on my domain and I have a page called recent-coupons, which loads like mentioned below:
http://mydomain.com/recent-coupons/
I use query string in this page for city, like:
http://mydomain.com/recent-coupons/?city=new-york
and then I display the list of coupons in new york city. Now, I want to rewrite this page as follows:
http://mydomain.com/recent-coupons/new-york/
I tried the tutorial at http://codex.wordpress.org/Function_Ref ... WP_Rewrite, but didnt work.. Can anyone help please ?
I have installed wordpress on my domain and I have a page called recent-coupons, which loads like mentioned below:
http://mydomain.com/recent-coupons/
I use query string in this page for city, like:
http://mydomain.com/recent-coupons/?city=new-york
and then I display the list of coupons in new york city. Now, I want to rewrite this page as follows:
http://mydomain.com/recent-coupons/new-york/
I tried the tutorial at http://codex.wordpress.org/Function_Ref ... WP_Rewrite, but didnt work.. Can anyone help please ?