Support » Plugins and Hacks » [Plugin: RSS Shortcode] Warning: array slice ()

[Plugin: RSS Shortcode] Warning: array slice ()

  • I’m getting a php warning when I use the RSS shortcode in the section-widgets.

    Warning: array_slice() [function.array-slice]: The first argument should be an array in /nfs/c02/h09/mnt/45405/domains/preview.status.ug/html/wp-content/plugins/rss-shortcode/rss-shortcode.php on line 21

    These are the two shortcodes I’m currently using.

    [rss feed="http://feeds.feedburner.com/Appfrica" num="5" excerpt="false"/]


    [rss feed="http://www.africanews.com/rss/page/rss_news" num="5" excerpt="false"]

    Can you help resolve this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    I just copied and pasted the exact code you provided into my test site and it seems to work fine. Maybe it’s just a temporary issue? (e.g. feed is not available ATM)


    I get this same error–or rather I get it about half the time, in some browsers but not others. I’m trying to pull a feed from my library website’s blog onto another page of the site, and that’s where the error shows up. It seems to be working fine for a Twitter feed that I’m pulling in on another post. So yeah, if there’s anyone who could shed some light on this, I’d be most grateful.

    Upon further investigation, it looks like this plugin maybe just doesn’t like WordPress feeds. I’m now using the blog-in-blog plugin for WP-within-WP feeds, and it’s working beautifully.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: RSS Shortcode] Warning: array slice ()’ is closed to new replies.