This SharePoint Framework (SPFx) Web Part allows you to fetch and display posts from a WordPress site as a highly configurable news feed using the WordPress REST API. Users can filter posts by tags, categories, post title patterns, and date ranges. This component is ideal for SharePoint environments that need to embed dynamic blog content from a WordPress site.
- 🔗 Connect to any WordPress site URL
- 🏷️ Filter posts by tags and categories
- 📆 Limit posts by date range (e.g., last 7 days)
- 🔍 Filter post titles with regular expressions (wildcard matching)
- ⚖️ Combine filters using
AND
/OR
logic - 🔄 Refresh feed and clear feed settings with one click
- 📃 Fully integrated with Fluent UI for a responsive SharePoint look and feel
- 🖌️ Configure colors of nearly every UI element by choosing from your SharePoint site's theme color palette!
demo-spfx-wp-rss-feed.mp4
- SharePoint Framework
- Microsoft 365 tenant
- Get your own free development tenant by subscribing to Microsoft 365 developer program
- Have a Wordpress site in mind that allows access to the /wp-json path for post consumption
- Have a SharePoint Online site
- Node.js (LTS version)
- Yeoman and SPFx Generator
- SharePoint Online Developer site (or compatible local workbench)
Solution | Author(s) |
---|---|
sharepoint-wordpress-news-feed | Austin Hunt, austinjhunt.com |
Version | Date | Comments |
---|---|---|
1.0 | April 03, 2025 | Initial release |
THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
- Clone this repository
- Ensure that you are at the solution folder
- in the command-line run:
- npm install
- gulp serve