Conditional check for custom RSS feed
-
I’d like to be able to identify whether the current URI is not only a feed, but a specific feed — in my case a custom feed (i.e., ‘http://mysite.com/feed/custom’).
is_feed()will check for a feed, however there are actions I want to take only on my custom feed.I’ve tried to identify the URI with
$_SERVER['REQUEST_URI'], with no luck. That trick doesn’t seems to work with feeds, and I can’t tell why.Suggestions? Is there a way to target specific feeds?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Conditional check for custom RSS feed’ is closed to new replies.