Filter output by scope in RSS feed
-
I’ve built a custom RSS template to handle different types of feeds as a custom page template. I’ve basically created a bunch of scopes and have created custom messages to output based on how far out an event is. So if say a webinar is taking place next week, a week in advance a message would be “Webinar on _______ is taking place next week, sign up now!”. I then feed this to Buffer and have pre-composed tweets ready to share on social media.
I’ve been trying unsuccessfully to output what the current scope is so I can use it as a filtering hook. So if an event matches the scope next-week, then add the customized description. Something like this
if ($scope == "next-week") { <description>Webinar on <?php echo $event_name; ?> is taking place next week, sign up now!</description> }I’m not a developer and am just fudging my way through this, so this may be plain as day simple. Any help you could lend would be appreciated.
The topic ‘Filter output by scope in RSS feed’ is closed to new replies.