How do I use Ajax to show the new posts realtime, on the frontpage

Does anyone know how to make new posts automatically show up in the frontpage, with out having to refresh the page. I have a wordpress site with multiple authors and want their new posts to show up automatically.

Thanks.

2 Answers
2

I cannot find a plugin that does this (although the Live Blogging Plugin is similar to what you need).

In general you should use the Periodic Refresh ajax pattern to check the server every few seconds if the content of the current dom is the latest posts. If not, insert in the content of the latest post(s). Good Luck!

Leave a Comment