WordPress.org

Ready to get started?Download WordPress

Forums

JP's Get RSS Feed
[resolved] Can't get short code to work (12 posts)

  1. rpvp
    Member
    Posted 1 year ago #

    All I get are errors:

    Using this as a shortcode:
    [jp-rss-feed url="http://www.mydesert.com/apps/pbcs.dll/section?category=RSS06&template=rss_gd_re"]

    If I can get it to work, I'd like to display 3 items with a clickable read more link at the end that opens in a new window. Can this plugin do that? If so, can you show a suggested shortcode?

    The error I'm getting is:

    Fatal error: Call to undefined method WP_Error::get_item_quantity() in /home/xxxx/public_html/xxxxxx.com/wp-content/plugins/jps-get-rss-feed/jp_get_rss_feed_items.php on line 148

    http://wordpress.org/extend/plugins/jps-get-rss-feed/

  2. jp2112
    Member
    Plugin Author

    Posted 1 year ago #

    Sorry about that. I tried it on my site and got an error as well. Can you try it with a different feed and see if it works at all?

  3. jp2112
    Member
    Plugin Author

    Posted 1 year ago #

    Do you still need help with this?

  4. rpvp
    Member
    Posted 1 year ago #

    I ended up using a different plugin.

  5. jp2112
    Member
    Plugin Author

    Posted 1 year ago #

    OK. Can you let me know which one? I'd like to see how they are doing it so I could improve my plugin.

  6. rpvp
    Member
    Posted 1 year ago #

    Sure, it's rssimport.

  7. jp2112
    Member
    Plugin Author

    Posted 1 year ago #

    I looked at that plugin. Does it even work? It still uses fetch_rss which has been deprecated since WordPress 2.8.

    The feed you are trying to pull doesn't validate (http://validator.w3.org/feed/check.cgi?url=http%3A%2F%2Fwww.mydesert.com%2Fapps%2Fpbcs.dll%2Fsection%3Fcategory%3DRSS06%26template%3Drss_gd_re), that may be why my plugin doesn't work.

  8. rpvp
    Member
    Posted 1 year ago #

    Yes, working fine -- updating posts, etc.

  9. wpcoder
    Member
    Posted 1 year ago #

    Does the opennewwindow functionality work?
    As in:
    'opennewwindow' => true,

    I can't get this to work.

  10. jp2112
    Member
    Plugin Author

    Posted 1 year ago #

    I just checked version 1.3.7 on my site and it works. Please show the exact code you are using. Thx

  11. wpcoder
    Member
    Posted 1 year ago #

    I noticed the 1.3.7 upgrade showed up last night in my install of WP. I upgraded and that now works. Now, if I increase my feeds beyond 4, I get weird results. Like about 8 or 9 feeds.

    Code pretty straight forward - see below:

    <?php
    if (function_exists('jp_get_rss_feed_items')) {
      jp_get_rss_feed_items(array(
        'url' => "http://feedurl.com/page.rss",
        'numitems' => 4,
        'nofollow' => true,
        'cssclass' => 'myclass',
        'getdesc' => false,
        'opennewwindow' => true,
        'show' => true
      ));
    }
    ?>
  12. jp2112
    Member
    Plugin Author

    Posted 1 year ago #

    Sorry, I'm not understanding you. Are you saying that when you call the plugin with more than four different feeds, you get results from 8 or 9 feeds?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.