I am trying to make my own custom feeds that can dynamically change the feed name by making my own plugin, but WordPress is throwing these two errors:
Notice: Trying to get property of non-object in /public_html/wp-includes/rewrite.php on line 73
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /public_html/wp-includes/rewrite.php on line 73
How can I solve this and get my custom feeds working? I know it should be easy to do this, as I had this code working before.
Here's my code:
in my main plugin php file:
[code removed]