跳到内容

RSS Feed Block (Gutenberg)

v0.3

aatanasov · 2018年7月23日 上架

This is a WordPress plugin that registers a Gutenberg block. The block displays posts from an RSS feed.

正在使用
10+
评分
暂无
累计下载
2,139
最近更新
2022年6月11日
需要 WordPress 5.0.0+已测试到 6.0.19PHP 5.6+

贡献者

截图

On the left side the screenshot shows the form where you can enter your feed URL and validate it. On side panel you can see the available options of the block.
On the left side the screenshot shows the form where you can enter your feed URL and validate it. On side panel you can see the available options of the block.
This screenshot shows the options of the block.
This screenshot shows the options of the block.

This is a Gutenberg block that pulls posts from an RSS feed.

The plugin uses the fetch_feed WordPress function to display the entries from a feed on your website (https://codex.wordpress.org/Function_Reference/fetch_feed).

Requirements

Gutenberg has to be installed on your WordPress instance in order to use this plugin.

Configuration

Once the plugin is installed, you’ll first need to enter the URL of your feed URL. There is a helpful button for validating the feed URL. If there is something wrong, an error will appear.

Here are the available feed options:
1. Number of posts to be shown on the front-end. The default number is 10.
2. Whether to show the descriptions of the posts on the front-end.
3. Whether to show the dates of the posts on the front-end.
4. Whether to show the content of the posts on the front-end.

WordPress Hooks

There are a few WordPress hooks that allows you to modify the output. All of them are related to the front-end.

Actions

grf_before_items -- called before displaying the feed on your site.

grf_before_item -- called before each feed entry.

grf_after_item -- called after each feed entry.

grf_after_items -- called after all listed entries.

Filters

grf_frontend_output -- allows you to modify the HTML markup that will be displayed on the site.<h3>Front-end error messages</h3>

In case, a feed isn’t configured or it isn’t a valid one, the following messages might appear on the page that uses the custom block:
– Missing feed URL: Please set the URL of the RSS feed through the WordPress dashboard.
– Incorrect feed: Please make sure the provided URL is a valid feed.
– No posts: No feed items found.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums