[wp-hackers] Adding a custom GET parameter to a feed URL

Otto otto at ottodestruct.com
Thu Jan 27 18:21:25 UTC 2011

You must be doing the redirect yourself, somehow, because WP doesn't do that.

Example: http://ottopress.com/feed/?foo=bar

I have nothing special happening on foo, and it's basically ignored.


On Thu, Jan 27, 2011 at 11:44 AM, dave morris <dvmorris at gmail.com> wrote:
> I am writing a custom feed that I would like to be able to accept a
> custom GET parameter. However, when I specify that extra parameter,
> the feed redirects to the main blog page, and includes that custom
> parameter.
> For example:
> http://example.com/feed/custom-feed-type/ - outputs a feed in my
> custom format
> http://example.com/feed/custom-feed-type/?cat=test - outputs a feed in
> my custom format containing posts assigned to category 'test'
> http://example.com/feed/custom-feed-type/?customparam=test - redirects
> to the main blog home page
> What hook can I provide to get around this redirect? I'm having
> trouble finding it in the code.
> Thanks,
> Dave
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers

More information about the wp-hackers mailing list