[wp-hackers] How to parse a query .

Mark Jaquith mark.wordpress at txfx.net
Wed Dec 27 20:39:59 GMT 2006

On Dec 27, 2006, at 9:25 AM, sai krishna wrote:

> say If Im generalising all the feeds of rss3(same file as rss2)  
> that Im generating will have an additional parameter called 'loc'  
> which will have a value of location say london.
>   I tried adding before template_loader.php, wp-feed.php, wp- 
> rss3.php,classes.php..
>   But no luck for 'loc'..

You have to add the query var, as my example code showed.  Then you  
have to add the rewrite rule that'll populate the query var (my code  
shows that as well).  Then in your code, you'll use get_query_var 
('loc') to grab that value.

Mark Jaquith

Covered Web Services

More information about the wp-hackers mailing list