Display entries from any RSS or Atom feed.
- Name:
core/rss - Category: widgets
- API Version: 3
- Block Type: Dynamic (server-rendered)
- Keywords:
atom,feed
Attributes
Defined via the attributes property in block.json.
| Attribute | Type | Default | Description |
|---|---|---|---|
columns |
number |
2 |
— |
blockLayout |
string |
"list" |
— |
feedURL |
string |
"" |
Role: content |
itemsToShow |
number |
5 |
— |
displayExcerpt |
boolean |
false |
— |
displayAuthor |
boolean |
false |
— |
displayDate |
boolean |
false |
— |
excerptLength |
number |
55 |
— |
openInNewTab |
boolean |
false |
— |
rel |
string |
— | — |
Supports
Defined via the supports property in block.json.
anchor:truealign:truehtml:falseinteractivity:clientNavigation:true
spacing:margin:truepadding:true
color:background:truetext:truegradients:truelink:true
Block Markup
This is a dynamic block. It is rendered on the server and does not save HTML in post content.
In post content, it is stored as a block comment:
<!-- wp:rss {"blockLayout":"grid","displayDate":true,"displayExcerpt":true,"displayAuthor":true,"excerptLength":20,"feedURL":"https://wordpress.org/news/","itemsToShow":4} /-->
Source
- block.json (reference)
- Source directory — browse
edit.js,save.js,index.php, and more.