Haven't found an info about it anywhere. So I thought I will ask here.
Basically I'm looking for a simple AJAX code, that will check the database and send a signal when a new post has been made or added to the database.
In a real time, without reloading the page.
By signal, I mean something like this:
If the new post was added to the database
--do something--
Else
--do something else--
What I want to do is to notify my Wordpress users on the front end with a small colored dot near the "Home" button to go and check it out.
Just like Twitter has:
Any help would be appreciated.