Custom Feed Title to include a Feed Source?
-
Hello is it possible to include the name of a feed source and append to the Custom Feed Title?
Custom Post Title: Feed Source
So if someone subscribes to the custom feed they also see credit to the original site.
Thanks!
-
Hi @malmac
Thank you for reaching out!
Yes, it’s possible to include the name of a feed source and append it to the custom feed title. We can achieve this using a custom code snippet, but the exact implementation depends on your current setup and configuration.
Could you please share your system information with us? This will help us better understand your setup and provide you with a more accurate solution.
Once we have that, we’ll guide you further on how to implement this customization.
Looking forward to your reply.
Here you go. Thanks for the help
Begin System Info Please include this information when posting support requests
Multi-site: Yes
SITE_URL: https://quakernews.malcolmmcatee.com
HOME_URL: https://quakernews.malcolmmcatee.comPlugin Version: 4.23.13
WordPress Version: 6.7.1Platform: Apple
Browser Name: Chrome
Browser Version: 131.0.0.0
User Agent String: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36PHP Version: 8.2.26
MySQL Version: 8.0.39-30 (mysqli)
Web Server Info: ApachePHP Safe Mode: No
PHP Memory Limit: 768M
PHP Post Max Size: 256M
PHP Time Limit: 120WP_DEBUG: Disabled
WP Table Prefix: Length: 5 | Status: Acceptable
Show On Front: page
Page On Front: Newsfeed #5542
Page For Posts: Newsfeed #5542Session: Disabled
Session Name: PHPSESSID
Cookie Path: /
Save Path: /tmp
Use Cookies: On
Use Only Cookies: OnUPLOAD_MAX_FILESIZE: 256MB
POST_MAX_SIZE: 256MB
WordPress Memory Limit: 256MB
DISPLAY ERRORS: N/A
FSOCKOPEN: Your server supports fsockopen.PLUGIN MODULES:
- core
- addons
- wordpress
- assets
- importer
- feed_sources
- feed_items
- feed_blacklist
- feed_display
- feed_shortcode
- feed_templates
- gutenberg_block
- images
- custom_feed
- rest_api
- tools
- tools/bulk_add
- tools/blacklist
- tools/import_export
- tools/logs
- tools/sys_info
- tools/reset
- settings
- licensing
- upsell
- logging
- i18n
- twig
- parsedown
- polylang_compat
- bf23
ACTIVE PLUGINS:
Akismet Anti-spam: Spam Protection: 5.3.5
Classic Editor: 1.6.7
Classic Widgets: 0.3
GenerateBlocks: 1.9.1
GP Premium: 2.5.0
SVG Support: 2.5.8
WP RSS Aggregator: 4.23.13NETWORK ACTIVE PLUGINS:
Akismet Anti-spam: Spam Protection: 5.3.5
Classic Editor: 1.6.7
Classic Widgets: 0.3
Contact Form 7: 6.0.1
Font Awesome: 4.5.0
GP Premium: 2.5.0
MultiSite Clone Duplicator: 1.5.3
Speed Optimizer: 7.7.2
SVG Support: 2.5.8
WP RSS Aggregator: 4.23.13CURRENT THEME:
GeneratePress: 3.5.1
SETTINGS:
(
[wprss_more_features] => Array
(
[is_active] =>
))
wprss_db_version 16
wprss_did_guide_sign_up 1
wprss_did_intro 1
wprss_hs_beacon_enabled 0
wprss_intro_feed_id 5248
wprss_intro_shortcode_page 4279
wprss_prev_update_page_version 4.23.13
(
[open_dd] => blank
[follow_dd] =>
[feed_limit] => 15
[date_format] => m-d-Y
[limit_feed_items_db] => 200
[cron_interval] => hourly
[styles_disable] => 1
[title_link] => 1
[title_limit] =>
[source_enable] => 1
[text_preceding_source] => via
[date_enable] => 1
[text_preceding_date] => – posted
[limit_feed_items_imported] => 0
[custom_feed_url] => wprss
[custom_feed_limit] =>
[source_link] =>
[video_link] =>
[limit_feed_items_age] =>
[limit_feed_items_age_unit] => days
[time_ago_format_enable] => 1
[tracking] => 0
[custom_feed_title] => Quaker News
[pagination] => numbered
[authors_enable] =>
[unique_titles] => 1
[expiration_notice_period] => 2 weeks
[feed_request_useragent] => Mozilla/5.0 (Linux 10.0; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36
[certificate-path] => wp-includes/certificates/ca-bundle.crt
[limit_feed_items_per_import] =>
[feed_items_import_order] => latest
[custom_css] =>
[html_classes] =>
[feed_cache_enabled] => 0
[schedule_future_items] => 0
)
wprss_v5_coming_notice_dismissed 1PHP EXTENSIONS:
- Core
- PDO
- Phar
- Reflection
- SPL
- SimpleXML
- Zend OPcache
- bcmath
- bz2
- calendar
- cgi-fcgi
- ctype
- curl
- date
- dba
- dom
- enchant
- exif
- fileinfo
- filter
- ftp
- gd
- gettext
- gmp
- hash
- iconv
- imap
- intl
- json
- libxml
- mbstring
- memcached
- mysqli
- mysqlnd
- openssl
- pcntl
- pcre
- pdo_mysql
- pdo_pgsql
- pdo_sqlite
- pgsql
- posix
- pspell
- random
- readline
- session
- shmop
- soap
- sockets
- sodium
- sqlite3
- standard
- sysvmsg
- sysvsem
- tidy
- tokenizer
- xml
- xmlreader
- xmlwriter
- xsl
- zip
- zlib
End System Info
Hi @malmac
Thanks for getting back to us and providing your system information.
Please allow me some time to consult with our development team to provide the appropriate custom code snippets for your needs. I’ll get back to you as soon as I have the details.
Thank you for your patience.
Hey there, just checking in to see if you have had any luck with this. Thanks, Malcolm
Hi @malmac
Thank you for your patience, and we apologize for the slower response during the holiday season.
You can use the following code snippet to include the feed source name in the title:
add_filter('wprss_populate_post_data', function (array $data) {
// Retrieve the feed ID from the global variable
$feed_ID = isset($GLOBALS['wprss_importing_feed']) ? $GLOBALS['wprss_importing_feed'] : null;
// Get the feed source name or use a fallback
$source_name = $feed_ID ? get_the_title($feed_ID) : 'Unknown Source';
// Update the post title with the source name
$data['post_title'] = $data['post_title'] . ' : ' . $source_name;
return $data;
});The easiest way to add this code is by using the Code Snippets plugin.
After implementing the code, you will need to delete the previously imported items and re-import them. Please note that the plugin will only import items that are still available in the RSS feed.
I hope this helps! Let me know if you have any further questions or run into any issues.
Hello, Yes this worked, but isn’t quite what I was looking for.
I dont want to change how this is displayed on the web page. I want the source to appear in the customRSS feed: https://quakernews.malcolmmcatee.com/wprss
- This Week in the World: A New Year, A New Congress, and New Chapter for Our Work : Friends Committee On National Legislation via Friends Committee On National Legislation – posted 2 days ago
I don’t want the source to appear twice on the web page.
I do want it to look like this in a Feed Reader
This Week in the World: A New Year, A New Congress, and New Chapter for Our Work :
Quaker News via Friends Committee On National Legislation / 3, 2025 at 1:16 PMI want to change the Custom RSS Feed.
Thanks, MalcolmHi @malmac
Thank you for clarifying. Just to confirm, you would like to modify the title specifically in your Custom RSS feed (/wprss) without affecting how it is imported or displayed on your website. Is that correct?
yes that’s correct.
Hi @malmac
Thank you for confirming. I’ve shared this information with our development team, and I’ll get back to you as soon as I receive their feedback.
In the meantime, your patience is greatly appreciated.
Hi @malmac
Thank you for your patience while we looked into this matter.
I’ve received feedback from our development team, and unfortunately, there is currently no hook or filter available to modify the Custom RSS feed (/wprss).
However, we recognize how valuable this option is, and we plan to include it in Aggregator 5.0.
Thanks again for your understanding and patience.
Awesome. Thanks for your help!
You’re most welcome, @malmac !
We’ll be sure to notify you as soon as Aggregator 5.0 is released. In the meantime, I’ll close this ticket for now. If you need any further assistance or have any other questions, please don’t hesitate to reach out.
Thanks again, and have a great day!
The topic ‘Custom Feed Title to include a Feed Source?’ is closed to new replies.