WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. wonderfullyrich
    Member
    Posted 4 years ago #

    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"/]

    and

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

    Can you help resolve this?

  2. godfreykfc
    Member
    Posted 4 years ago #

    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)

    Godfrey

  3. newrambler
    Member
    Posted 4 years ago #

    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.

  4. newrambler
    Member
    Posted 4 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic