-= content single =-

OpenCart: Display RSS Feed

RSS reader to display feed inside sidebar for any OpenCart theme.  There are a few parameters that could be specified in admin (Extension/Modules/Feed Display) after the module installed. Only content of <title> nodes are display.

Settings:

  • Unlimited number of feeds. For example: different feeds could be displayed on home, brand, and info pages.
  • Custom title
  • Number of items to display
  • AJAX call module’s controller.

If you would like to display ‘Featured Images’ for WordPress you need to add the following code in functions.php file for your WordPress theme:

add_action('rss2_item', 'add_my_rss_node');
function add_my_rss_node( ) {
if( has_post_thumbnail() ):
$thumbnail = wp_get_attachment_url (get_post_thumbnail_id ());
echo "<image>{$thumbnail}</image>";
endif;
}
5000 - Rss-feed Ocmod (9.4 KiB, 28 downloads)

Leave a Reply

Your email address will not be published. Required fields are marked *

Yandex.Metrica