PRO: Slider & API – Smartslider & JCI

  • Your task:
    Connect a slider with an API. The API (JSON; XML, CSV) gives all info for images, text and links for a slider on a WordPress-Page.
  • Solution:
    Install the PRO-Version of the JCI-Plugin and the plugin “Smartslider3 PRO.
    With the JCI-Plugin you can create a RSS-Feed out of the API-data.  The GET-Parameter “?show=oc” removes the WordPress-Template and creates pure RSS : This RSS-URL can be used to feed the RSS-Generator of the Smartslider.
  • In Detail:
    Create a JCI-Template with the following template-code for static RSS. By adding twig and an URL you can add API-data.
    RSS-XML-Code for the Slider:
<?xml version="1.0" encoding="windows-1252"?>
<rss version="2.0">
    <copyright>Copyright 20...</copyright>
    <lastBuildDate>Tue, 21 Oct 2019 03:19:24 -0800</lastBuildDate>
    <pubDate>Tue, 21 Oct 2019 12:18:22 -0300</pubDate>
      <pubDate>Tue, 21 Oct 2019 07:38:46 -0800</pubDate>

Notice: RSS is sensitive to special chars and chars used for RSS itself. Therefore consider to mask JSON-data in a CDATA-tag:


Name this JCI-Template e. g. “rss” and add this Shortcode to a page:

[[jsoncontentimporterpro nameoftemplate=rss]]

Publish this page and add “?show=oc” to the URL: This removes the WordPress-Template and gives pure RSS / XML.
This URL can be used with the SmartSlider 3 RSS-connector.