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.
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.
Sign up to join this communityDoes 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.
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!
In my (limited) programming world, I found Ajax long polling
to be the easiest way of doing live updates.
Here is a basic example of it: https://stackoverflow.com/questions/333664/simple-long-polling-example-code
Other way would be to use HTML5 Websockets (but it needs special server setup): http://net.tutsplus.com/tutorials/javascript-ajax/start-using-html5-websockets-today/