Displaying Imported Items via Shortcode
When using the free core plugin alone, or along with any of the add-ons listed, the display of imported feed items is handled either via our shortcode or our block.
The shortcode: [wp-rss-aggregator]
This shortcode accepts a number of parameters that are explained below.
You can easily select the source for your feeds and also insert a limit via shortcode parameters as shown below. To get your feed source ID refer to your feed source listing page.
[wp-rss-aggregator source="ID" limit="xx"]
where “ID” is the feed soure ID and “xx” is the number of feed items this shortcode should display.
Premium Add-ons & their Shortcode Parameters
Below are the add-ons that still use the shortcode when used with the core plugin:
- Excerpts & Thumbnails
- Keyword Filtering
If you’ve got the Categories add-on installed, you can also use the following.
To display feed items from sources assigned to the Entertainment category, just use the following shortcode:
Use the slug of the category to refer to it, as shown below.
You might also want to display feed items from two or more categories. In that case, it’s also a simple shortcode modification:
[wp-rss-aggregator category=’entertainment, water-sports’]
|category|| [wp-rss-aggregator category="sports"]
[wp-rss-aggregator category="entertainment, sports"]
If you’ve got the Excerpts & Thumbnails add-on installed, you can also use the following parameters.
|thumbnails||yes, no | 1,0 | true, false||[wp-rss-aggregator thumbnails="no"]|
|excerpts||yes, no | 1,0 | true, false|| [wp-rss-aggregator excerpts="no"]
With the Keyword Filtering add-on you can filter items from the shortcode, by using the following parameter. Note that the shortcode only accepts one keyword filter per shortcode, and will not be able to handle multiple keyword filters in the same shortcode.
Premium Add-ons that DO NOT Use the Shortcode
When using the below premium add-ons, please note that the shortcode will no longer be used to display imported posts. These are imported directly into your site’s Posts list, and are then displayed by your theme or page builder.
- Feed to Post
- Full Text RSS Feeds, WordAi and/or SpinnerChief (alongside Feed to Post)
Click here to learn more about how the above add-ons display imported posts.
The Widget add-on displays feed items itself in any widget area.