Jump to content

Display RSS Feed from WordPress in WHMCS Announcements


unrealindeed

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

screen.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated