Individual Google News feeds per user?
-
Hello,
I have different WP users on my platform, to whom I’d like to show different results from Google News.
A feed like
https://news.google.com/news/rss/search/section/q/siemens/siemens?hl=en&ned=us&output=rss
would for example be adapted to customer Siemens; another WP user (let’s say, Microsoft), would see results for the keyword “microsoft” from Google news.
What I want to do, hence, is to replace the two “siemens” in the feed address by another text, depending on the WP user. I already understand how to get the user’s name via
$company= wp_get_current_user();
$company_name = $company->display_name; //Get current user’s nameBut: What’s the best way to put $company_name into the Google news feed? Is there a Feedzy hook which can do this?
Thank you very much,
Requin
- The topic ‘Individual Google News feeds per user?’ is closed to new replies.