ZWH HubSpot Newsletter Customizer
Generate customizable monthly/weekly RSS feeds for HubSpot newsletters with flexible content sources and date-based organization
by Ziv Washere · github.com/ziv-was-here/zwh-hb-newsletter-customizer
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/ziv-was-here/zwh-hb-newsletter-customizer/archive/refs/heads/main.zipGenerate customizable monthly/weekly RSS feeds for HubSpot newsletters with flexible content sources and date-based organization.
Overview
This WordPress plugin creates a specialized RSS feed that integrates seamlessly with HubSpot's email marketing automation. Instead of manually sending newsletters, HubSpot can automatically pull the latest content from your WordPress site and send it to your subscribers on a schedule you define.
Features
✅ Flexible Content Sources - Pull from Posts, Pages, or both
✅ Customizable Post Count - Choose how many posts to include (1-100)
✅ Multiple Frequencies - Daily, Weekly, or Monthly feeds
✅ Category & Tag Filtering - Filter content by category or tag
✅ Featured Images - Include post featured images in the feed
✅ Excerpt Support - Control whether excerpts appear in emails
✅ Date Organization - Content automatically organized by date
✅ HubSpot Compatible - RSS format optimized for HubSpot
✅ Logging & Statistics - Track feed generation and performance
Installation
-
Download the plugin folder
zwh-hb-newsletter-customizerto your plugins directory:wp-content/plugins/zwh-hb-newsletter-customizer/ -
Activate the plugin from WordPress Admin Dashboard:
- Go to Plugins → Installed Plugins
- Find "ZWH HubSpot Newsletter Customizer"
- Click Activate
-
Navigate to the new HubSpot Newsletter menu in your WordPress Admin sidebar
Configuration
Basic Settings
-
Number of Posts - Select how many recent posts to include in your feed (default: 10)
-
Feed Frequency - Choose update frequency:
- Daily - HubSpot checks once per day
- Weekly - HubSpot checks once per week (recommended)
- Monthly - HubSpot checks once per month
-
Content Source - Select what to include:
- Posts Only - Just blog posts
- Pages Only - Just pages
- Posts & Pages - Both posts and pages
- Custom Post Types - For plugins that create custom content types
Advanced Filters
- Filter by Category - Optional: include only posts from a specific category
- Filter by Tag - Optional: include only posts with a specific tag
Content Options
- Include Post Excerpts - Recommended enabled. Shows post summaries in emails
- Include Featured Images - Shows featured images in the newsletter preview
- Feed Title - Appears in HubSpot (default: "[Site Name] - HubSpot Newsletter")
- Feed Description - Appears in HubSpot description field
HubSpot Integration
Step 1: Copy Your Feed URL
- Go to WordPress Admin → HubSpot Newsletter
- Copy the Feed URL shown at the top
- It will look like:
https://yoursite.com/feed/zwh-hubspot-newsletter/
Step 2: Add Feed to HubSpot
- Log in to HubSpot
- Navigate to Marketing → Email → Subscription Settings
- Click Add External Blog
- Paste your Feed URL
- Configure:
- Blog Name: Name your newsletter
- Subscription Type: Choose "Auto-publish" or scheduled frequency
- Email Frequency: Select when emails should send (Daily/Weekly/Monthly)
Step 3: Create Newsletter Template
- In HubSpot, create a new Email
- Select "Blog Subscription" or "RSS" email template
- Design your email template
- Map RSS fields:
- Post Title → Email subject
- Featured Image → Email header/body
- Excerpt → Email body preview
- Full Post → Detailed email content
Step 4: Set Subscribers
- Select who should receive the newsletters
- Set up automation triggers if needed
- Test with a sample send before scheduling
Content Display
The RSS feed includes:
- Post Title - Full post title
- Post Excerpt - Summary (if enabled)
- Featured Image - Thumbnail image (if available)
- Full Content - Complete post content
- Publication Date - When the post was published
- Author - Post author name
- Category - Post category tag
Feed URL Format
Your feed URL is automatically generated and follows this format:
https://yoursite.com/feed/zwh-hubspot-newsletter/
This is an RSS 2.0 feed with extended namespaces for HubSpot compatibility:
content:encoded- Full post contentdc:creator- Author nameenclosure- Featured image data
Scheduling & Updates
Automatic Updates
The plugin uses WordPress Cron to track feed updates at your selected frequency:
- Daily: Feed data refreshes once per day
- Weekly: Feed data refreshes once per week
- Monthly: Feed data refreshes once per month
HubSpot polls the feed based on your configured frequency. When HubSpot requests the feed, it gets the latest X posts based on your settings.
Viewing Logs
To see feed generation logs:
- Go to WordPress Admin → HubSpot Newsletter
- Check the "Last Update" information (appears after settings)
- Database logs are stored in the
wp_zwh_hb_newsletter_logstable
Troubleshooting
Feed Not Updating
Check if permalinks are enabled:
- Go to Settings → Permalinks
- Make sure a custom permalink structure is selected (not "Plain")
- Click Save Changes
Check WordPress Cron:
- The plugin uses WordPress loopback requests
- Ensure your server can make HTTP requests to itself
- Some hosting environments block loopback requests - contact your host
HubSpot Not Receiving Feed
- Test the feed URL directly in your browser - you should see XML
- Verify the feed URL is correctly copied in HubSpot
- Check that posts are published (not drafts)
- Ensure at least one post matches your filter criteria
Excerpts Not Showing
- Go to HubSpot Newsletter settings
- Ensure "Include Post Excerpts" is checked
- Verify posts have excerpts (check individual post editor)
- In HubSpot, map the excerpt field to your email template
Featured Images Missing
- Go to HubSpot Newsletter settings
- Ensure "Include Featured Images" is checked
- Add featured images to your posts (Post Editor → Featured Image)
- In HubSpot, configure the image field in your email template
Feed Showing Old Content
Check your settings:
- Go to HubSpot Newsletter settings
- Increase the "Number of Posts" value
- Check Category/Tag filters aren't too restrictive
- Publish new content to see immediate updates
Database Schema
The plugin creates a logging table: wp_zwh_hb_newsletter_logs
Fields:
id- Log entry IDfeed_id- Feed identifiergenerated_date- When the update occurredpost_count- Number of posts in that updatestatus- Success/Error statusmessage- Additional status message
Performance Notes
- Feed generation is lightweight and happens on-demand
- The RSS feed is generated dynamically (not cached by default)
- For sites with 1000+ posts, consider using category/tag filters
- HubSpot caches the feed, reducing server load
Changelog
Version 1.0.0
- Initial release
- RSS feed generation
- Admin settings panel
- HubSpot integration
- Feed logging
- Category/tag filtering
- Multiple frequency options
Support & Issues
For issues or feature requests related to this plugin, ensure:
- WordPress 5.0 or higher
- PHP 7.4 or higher
- Permalinks enabled (not "Plain" structure)
- HubSpot account with Email Marketing access
License
This plugin is provided as-is for use on your WordPress sites.
Security
- All settings are sanitized on input
- Feed URLs are publicly accessible (RSS is meant to be public)
- No sensitive data is exposed in the feed
- Database logs are WordPress admin-only
Questions about HubSpot? Check the HubSpot Knowledge Base
Questions about this plugin? Review the settings panel and HubSpot Setup Instructions section.