unrealindeed Posted December 20, 2022 Share Posted December 20, 2022 Hi All, Has anyone ever tried displaying/replacing the WHMCS Announcements section with posts from a WordPress blog feed ? We don't really use the Announcements feature in WHMCS so instead thought it might more manageable to have it display our blog's rss feed instead of having another feed to update manually. There are no options in WHMCS > Support > Announcements nor is there any documentation to do such. If anyone has any idea's on how to go about this, I'd love to hear it. Thanks in advance. 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted December 20, 2022 Share Posted December 20, 2022 You have several options: Create a WHMCS page that grabs RSS feed from WP and style it a bit with CSS so that it looks good If WP and WHMCS are on the same hosting account, create a WHMCS page where you directly query WP database to get all your articles Use an iframe (not recommended) Create a WHMCS page where jQuery pings WP to get contents. Don't forget to unlock WHMCS domain to overcome cross-origin protection The boring part is that you'll need to paginate results. A couple of months ago I did what I just described in the last point. It was not a blog post but documentation written in WP (powred by Betterdocs plugin). Basically on WP there was a "type to search" for docs. We changed WHMCS submitticket.php page so that before users can open a ticket they are required to type what they are looking for like for example "My server is offline". As they type, jQuery silently post the request to WP to show results on WHMCS. This way customers can click, read the article and avoid opening a new ticket. I am telling you this not to flex but becuase you have to consider one important detail. I bet that it's not a question of simply showing your posts. I suspect you also want to give WHMCS users the possility to search for specific articles, filter by categories, tags etc. Just in case, be prepared to play with jQuery. 0 Quote Link to comment Share on other sites More sharing options...
unrealindeed Posted December 21, 2022 Author Share Posted December 21, 2022 Hi Kian, Thank you for the detailed answer, some great points there. I will give creating a whmcs page some thought. We just want to replace WHMCS announcements with 3 or 4 of the most recent blog posts so that the 'Recent News' section in the client area is not empty. No search or extra functionality needed as we wont be using the announcements section at all, hence why we want to use a feed from existing WP blog. Each feed title can have a title, x amount of description text and link (target=_blank) to the blog article. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.