How to use is_author in feeds?
-
Hi dear community,
I try to get the following to work:
function xxx_filter_cat() { if (is_author()) query_posts("cat=4"); if (is_front_page()) query_posts("cat=2,3"); } add_action('rss2_head', 'xxx_filter_cat');
It should alter the rss2 feed, depending if it should generated for the general homepage, or for a single user.
But: It doesn’t work at all – is_author and all the others is_* functions I tried always trigger false. is_feed works, but well, doesn’t help me very much.
So: How can I determine the request inside the rss feed?
Thanks in advance!
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘How to use is_author in feeds?’ is closed to new replies.