WordPress.org

Forums

JP's Get RSS Feed
[resolved] Add the ability to show the description (8 posts)

  1. jwurster
    Member
    Posted 2 years ago #

    Your plugin is great and does just what we wanted. However, I've been modifying your code each time it's update to display the description. Could you add a setting to turn this on/off so I don't have to change your code each time you update it?

    Thank you, jim

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

  2. jp2112
    Member
    Plugin Author

    Posted 2 years ago #

    Thank you! I was planning on making the output more customizable. Can you tell me specifically which output you are referring to?

  3. jwurster
    Member
    Posted 2 years ago #

    I added the items->description and that displayed fine. So, I think that information would be a start.

    I also wanted to ask how does your plugin return the recent items? Does it return all or just some based upon a date? This would also be a worthwhile parameter to set. In our case we would like to retrieve all the feeds.

    Thank you, jim

  4. jwurster
    Member
    Posted 2 years ago #

    Also, we just found the need to have an error message display if the feed is not available instead of the php error. So, I added:

    if (is_wp_error( $rss ) ) {
       echo "RSS feed not found!";
    } else {
       // your code to get the number of items and display
    }

    jim

  5. jp2112
    Member
    Plugin Author

    Posted 2 years ago #

    Where are you adding the description? After the post title? Please post your code.

    Regarding how the plugin returns feed items, it simply requests the last X number of feed items. It is not date dependent. If you want to increase or decrease the number of items, simply increase or decrease the number of items you request.

    FYI I just added the error handling code, no idea why I left it out. You should see it in the next release.

  6. jwurster
    Member
    Posted 2 years ago #

    I added it here:

    $output .= '" title="' . __('Posted', JPGRF_LOCAL) . ' ' . $item->get_date('j F Y | g:i a') . '">' . esc_html(__($item->get_title(), JPGRF_LOCAL)) . '</a> '.$item->get_description().'</li>';

    Concerning the number of returned items, I'm passing 100 but only getting 11. Perhaps it's the feed I'm using. I'll have to research.

  7. jp2112
    Member
    Plugin Author

    Posted 2 years ago #

    I added the item description as an option in version 1.3.4. Please download and let me know your thoughts. If you approve then please mark this thread as "resolved".

    Thx

  8. jp2112
    Member
    Plugin Author

    Posted 2 years ago #

    Marking this thread as resolved. If you need additional help please post back and I will change that.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • JP's Get RSS Feed
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic