Beskriuwing
WordPress comes with a default site-wide RSS feed but it isn’t sufficient when it comes to podcasts, where it only shares blog posts. RSS Feed Pro is a full-feature podcasting plugin designed for both beginners and power users. A user first sets up your preferred podcast hosting, the plugin delivers to your WordPress build.
The plugin is an upgraded and advanced revision of Frank Bültge’s RSSImport. RSS Feed Pro will display feeds in your blog, using PHP, a widget, or a shortcode. If you uninstall RSSImport and install RSS Feed Pro, you should not lose any of your current configurations. The plugin uses only standard WordPress functionality therefore no external libraries are required. As with all other content you publish, make sure you are allowed to stream the content of the feeds you are going to import.
To create a shortcode for sorting your RSS feeds archive catalog, please activate the plugin then click on RSS Archives > Add New Under “Shortcode Details”. Add the feed URL then the user can select their sort mode (By Year, By Category, and By Author Name)
To use the RSS Feed Pro widget, please go to widgets and find a widget called “RSS Feed Pro”. Check the boxes for the shortcodes that you’d like to use for your widget. Please click the “Installation” tab above for a comprehensive guide of the plugin’s features and functions.
Includes English, French, and Spanish languages.
Acknowledgements
Based on Frank Bültge RSSImport plugin that was no longer supported. Thanks to Dave Wolf for the original idea, to Thomas Fischer and Gunnar Tillmann for code enhancements in the original build-up to version 4.6.1 and Ilya Shindyapin, http://skookum.com for the idea and solution of pagination before version 4.6.1.
License
This advance fee plugin is public domain. Since it’s released under the GPL, you can use it free of charge on your personal or commercial blog. However, if you have gained value from this plugin, you can thank us by leaving a donation which will support the needy globally.
Technical Details for Release 1.1.6
Load time: 0.250 s; Memory usage: 3.57 MiB
PHP up to tested version: 8.3.11
MySQL up to tested version: 8.0.39
MariaDB up to tested version: 11.5.2
cURL up to tested version: 8.9.1, OpenSSL/3.3.1
PHP 7.4, 8.0, 8.1, 8.2, and 8.3 compliant.
Skermôfbyldings
Ynstallaasje
- Upload the plugin files to the ‘/wp-content/plugins/plugin-name’ directory, or install the plugin through the WordPress plugins screen directly.
- Activate the plugin through the ‘Plugins’ screen in WordPress.
- Access the ‘Admin Panel > RSS Shortcodes’ to create any shortcode you might need. We suggest Sort by Author, Sort by Category, Sort by Year.
You can insert the following code into a PHP plugin or in a template, for example sidebar.php
or single.php
:
Example:
<?php rssfp_import(10, ‘https://yourdomain.com/feed/’); ?>
This is the minimal code needed for using the plugin. The plugin accepts a number of parameters for customizing the feed content import. See below for the full list of available parameters. You can also use any of the parameters with Shortcode in posts and pages.
Example Shortcode:
[RSSImport display=”5″ feedurl=”https://yourdomain.com/feed/” use_simplepie=”true”]
For all (bool) parameters you can either use the strings true
and false
or the integer values 1
and 0
.
display
– The number of items to display. Default is5
.feedurl
– The feed address. Default ishttps://yourdomain.com/feed/
.before_desc
– The HTML or string to insert before the description. Default isempty
. You can use some variables which will be replaced, see below.displaydescriptions
– (bool) When set to true, the description for each entry will be displayed. Default isfalse
.after_desc
– The HTML or string to insert after the description. Default isempty
. You can use some variables which will be replaced, see below.html
– (bool) When set to true, the description can include HTML tags. Default isfalse
.truncatedescchar
– The maximum number of characters allowed in descriptions. If the description is longer than this length, it will be truncated to the given length. Default is200
, set the value to empty quotes''
to never truncate descriptions.truncatedescstring
– The HTML or string to insert at the end of a description after it has been truncated. Default is...
truncatetitlechar
– The maximum number of characters allowed in titles. If the title is longer than this value, it will be truncated to the given length. Default is''
, which means never truncate titles.truncatetitlestring
– The HTML or string to insert at the end of a title after it has been truncated. Default is' ... '
.before_date
– The HTML or string to insert before the date. Default is<small>
.date
– (bool) If true, display the date of the item. Default isfalse
.after_date
– The HTML or string to insert after the date. Default is</small>
.date_format
– The date format string. Leave empty to use the format of your WordPress installation. If a different date format is desired, specify a PHP date string, for example:F j, Y
. See also the date and time formatting page in the WordPress Codex.before_creator
– The HTML or string to insert before the creator of the item. Default is<small>
.creator
– (bool) If true, display the creator of the item. Default isfalse
.after_creator
– The HTML or string to insert after creator of the item. Default is</small>
.start_items
– The HTML or string to insert before the list of items. Default is<ul>
.end_items
– The HTML or string to insert after the list of items. Default is</ul>
.start_item
– The HTML or string to insert before each item. Default is<li>
. You can use some variables which will be replaced, see below.end_item
– The HTML or string to insert after each item. Default is</li>
. You can use some variables which will be replaced, see below.target
– The string to use for thetarget
attribute on links. Default isempty
. Valid options areblank
,self
,parent
,top
.rel
– The string to use for therel
attribute on links. Default isempty
. Valid options arenofollow
andfollow
.desc4title
– The description to use in thetitle
attribute on item title links. Default isfalse
.charsetscan
– (bool) If true, scan the feed content for the correct character set. This may cause the content to load more slowly. Use this option if you’re having problems with feed content being displayed with stranged characters. Default isfalse
.debug
– (bool) If true, activate debug-mode, which will echo the Magpie object as an array. Default isfalse
. Only use this option for debugging.before_noitems
– The HTML or string to insert before the no items message. Default is<p>
.noitems
– The message to display when the feed is empty. Default isNo items, feed is empty.
.after_noitems
– The HTML or string to insert before the no items message. Default is</p>
.before_error
– The HTML or string to insert before the error message. Default is<p>
.error
– Error message displayed when there is an error loading or displaying the feed. Default isError: Feed has an error or is not valid
.after_error
– The HTML or string to insert before the error message. Default is</p>
.paging
– (bool) If true, enable pagination. Default isfalse
.prev_paging_link
– The name of the previous page link. Default is« Previous
.next_paging_link
– The name next page link. Default isNext »
.prev_paging_title
– The title attribute of the previous page link. Default ismore items
.next_paging_title
– The title attribute of the next page link. Default ismore items
.use_simplepie
– (bool) If true, use SimplePie to parse the feed. SimplePie is included in WordPress 2.8 and newer and can parse both RSS and ATOM feeds. Default isfalse
if used with Shortcode,true
if used with the PHP function.view
– (bool) If true, calling therssfp_import()
function will print the rendered HTML directly to the output. If false, the rendered HTML will be returned by the function as a string value and nothing will be output. Default when using PHP code istrue
. Default when using Shortcode isfalse
.random_sort
– (bool) If true, Items will be displayed in random order. Default when using Shortcode isfalse
.order
– (string) Order of the filds Date, Title, Creator, Description. Use a comma separated string for your order. Default isdate,title,creator,description
The parameters before_desc
, after_desc
, start_item
and end_item
accepts the following variables which will be replaced:
%title%
for the title of the entry%href%
for the entry’s URL%picture_url%
for the URL of a thumbnail image for the entry if available. To use this variable, SimplePie is required to be enabled (use_simplepie="true"
)
If pagination is enabled, it adds a div
with the class rsspaging
to enable easier styling with CSS. You can also style the previous and next links, which have the classes: rsspaging_prev
and rsspaging_next
.
You can use any of the parameters in the php function rssfp_import
in your templates or with the Shortcode [RSSImport]
in posts and pages.
Examples
Using the PHP function with many parameters:
rssfp_import(
$display = 5, $feedurl = 'https://bueltge.de/feed/',
$before_desc = '', $displaydescriptions = false, $after_desc = '', $html = false, $truncatedescchar = 200, $truncatedescstring = ' ... ',
$truncatetitlechar = '', $truncatetitlestring = ' ... ',
$before_date = ' <small>', $date = false, $after_date = '</small>',
$before_creator = ' <small>', $creator = false, $after_creator = '</small>',
$start_items = '<ul>', $end_items = '</ul>',
$start_item = '<li>', $end_item = '</li>'
);
Please note that for the PHP function the parameters are expected in the order in which they are defined in the above list. Thus if you skip one parameter, you will also have to skip all of the subsequent parameters.
Using Shortcode with several parameters:
[RSSImport display="10" feedurl="https://your_feed_url/"
displaydescriptions="true" html="true"
start_items="<ol>" end_items="</ol>" paging="true" use_simplepie="true"]
Add a “more” link to the output:
rssfp_import(
$display = 5,
$feedurl = 'https://yourdomain.com/feed/',
$before_desc = '',
$displaydescriptions = true,
$after_desc = ' <a href="%href%" target="_blank">show more</a>'
);
or
[RSSImport feedurl="https://wordpress.org/news/feed/" after_desc=" <a href='%href%' target='_blank'>show more</a>" displaydescriptions="true" use_simplepie="true"]
Enable Thumbnail Pictures:
rssfp_import(
$display = 5,
$feedurl = 'https://bueltge.de/feed/',
$before_desc = '<img src="%picture_url%" alt="">',
$displaydescriptions = true
);
or
[RSSImport feedurl="https://wordpress.org/news/feed/" displaydescriptions="true" before_desc="<div><img src='%picture_url%' width='50px' alt='' style='float:left;' />" after_desc="</div>" use_simplepie="true"]
FAQ
-
Is this plugin frequently updated to WordPress compliance?
-
Yes, attention is given on a staged installation with many other plugins via debug mode.
-
Is the plugin as simple to use as it looks?
-
Yes. No other plugin exists that adds a RSS stream easily with so many options.
-
Has there ever any compatibility issues?
-
To date, none have ever been reported.
-
What podcast hosting services does this plugin work with?
-
Updated especially for Castos, it works with Buzzsprout, Captivate, Transistor, Podbean, Simplecast, and Resonate just to name a few.
-
Is the code in the plugin proven stable?
-
Please click the following link to check the current stability of this plugin:
https://plugintests.com/plugins/rss-feed-pro/latest
Resinsjes
Meiwurkers & amp; Untwikkelders
“RSS Feed Pro” is iepen boarne software. De folgjende minsken hawwe bydroegen oan dizze plugin.
MeiwurkersOersette “RSS Feed Pro” yn jo taal.
Ynteressearre yn ûntwikkeling?
Blêdzje troch de koade , besjoch de SVN-repository , of abonnearje op it ûntwikkelingslogboek troch RSS .
Feroaringslog
1.1.6 09/01/24
– Minor edits to language files
– Assure compliance with WordPress 6.6.1
– Assure compliance with WooCommerce 9.2.3
1.1.5 04/06/24
– Make adjustments and minor edits
– Assure compliance with WordPress 6.5
– Assure compliance with WooCommerce 8.7.0
1.1.4 12/02/23
– Fix cause of short code error Not a Valid JSON Response
– Assure compliance with WordPress 6.4.1
1.1.3 05/16/23
– Add option to sort feed in ASC/DESC by date order
– Update: Compatibility for WordPress 6.2.1
– Assure compatible with PHP 8.3 release
1.1.2 04/16/23
– Optimize for PHP 8.1 and WordPress 6.2
– Assure current stable PHP 8.1 and 8.2 use
1.1.1 05/23/22
– Text edits along with translations
– Assure compliance with WordPress 6.0
1.1.0 02/08/2022
– Update: Added ‘remove_link’ parameter to RSSImport shortcode
– Update: Setting remove_link=’1′ will remove permalink from feed
– Update: Compatibility for WordPress 5.9
– Update: All language files
– Fixed: Fixed error that prevent some feeds from working properly
– Fixed: Fixed some PHP and WordPress warning
– Fixed: Update some old code to prevent conditional error
– Assure current stable PHP 8.1.1 use
1.0.9 05/14/2021
– Update: Edit for compatibility with WordPress 5.7.2
1.0.8 09/24/20
– Fix a JavaScript error
– Fix a PHP generated warning
1.0.7 09/23/20
– Fix sanitization functions to escape
– Change unique function names to avert conflicts
– Add a nounce check for trigger submission checks
1.0.6 09/22/20
– Add Shortcode table with settings
– Add date, category and author archive options
– Add archive results modal popup within feed page
– Add language support including Spanish and French
– Update: Compliance with PHP 7.4.8 backward to 5.6.2
– Update: Edit for compatibility with WordPress 5.5.1
1.0 08/15/20
– Rebuild RSSImport 4.6.1