DWUser.com
Empowering Web Creativity
Support Center - EasyRotator for WordPress
EasyRotator KnowledgeBase – RSS Feed Compatibility
When rotators appear in posts that are syndicated via a WordPress site's RSS feed, EasyRotator automatically displays only the rotator's first photo in the RSS feed. This is because RSS feeds do not support JavaScript and other technologies needed to display the full, functional rotator.
Here is the code format used for this replacement:
<div class="easyRotatorWrapper easyRotatorWrapperRSS" align="center"> <img src="path/to/first/image.jpg" class="easyRotatorRSSPreviewImg" /> <!--easyRotatorRSSPreviewText--> </div>
You may want to customize this view and provide additional information, so that users who view your feed know that a full rotator can be viewed on your actual website. For example, you might want to display a link below the photo that says Click to view slider. To add this level of customization, you need to be familiar with basic theme editing and comfortable writing simple PHP code.
Add code such as the following to your theme's functions.php
file:
function easyrotator_rss_customization($content)
{
if (is_feed())
{
$replace = '<br /><a href="' . get_permalink() . '">Click to view slider</a>';
$content = str_replace('<!--easyRotatorRSSPreviewText-->', $replace, $content);
}
return $content;
}
add_filter('the_content', 'easyrotator_rss_customization', 1000);
We're Here to Help!
If you have any questions about this article or about using EasyRotator for WordPress, please let us know by opening a support ticket below.