How Does Wordpress Scheduled Posting Technically Work?

15 replies
This has always puzzled me... How does Wordpress (the self hosted ones) manage to auto post the scheduled posts all by itself when there's no cron job that's always running? Does the blog software communicate to a remote server like Wordpress.com of some sorts intermittently? Or does it just post the scheduled post when somebody visits the blog hence running the script :confused:
#posting #scheduled #technically #wordpress #work
  • Profile picture of the author papa_face
    I think its probably generated on the fly when someone visits the blog, or any page on the site including the admin panel.
    Pretty clever way of doing it really.
    {{ DiscussionBoard.errors[388288].message }}
  • Profile picture of the author undergroundguru
    Possibly something in the php that is triggered when a certain time/day is reached

    Not sure, but a really good question!!
    {{ DiscussionBoard.errors[388699].message }}
  • Profile picture of the author Scott Carpenter
    If I'm not mistaken, I think that it just pulls the posts based on the server date. If you schedule something in the future, it won't get pulled and displayed until that date/time.

    The one part that I don't know is how it triggers pings/etc for the post at the correct time. If someone knows, clue us in!
    {{ DiscussionBoard.errors[388970].message }}
  • Profile picture of the author rarebiz
    Nothing special.
    Your post contains publishing date.
    eg. Post A = 2009-01-06, Post B = 2009-01-05
    The script just fetch from database which posts are older or the same publishing date as today.
    So, if you visit the site today, 2009-01-05. Only Post B will be shown up.
    When you visit tomorrow, both Post A and B come up.
    Just a typical dynamic pages.

    If scheduled post can trigger Ping, that would be interesting.
    Signature

    -
    Wish You All Great Success in 2015 :)

    {{ DiscussionBoard.errors[388975].message }}
  • Profile picture of the author globalpro
    It's all handled internally with the script, the posting and the pinging functions.

    I believe it is acting off the server info, date and time.

    Thanks,

    John
    {{ DiscussionBoard.errors[388976].message }}
  • Profile picture of the author Mark Brian
    Hmmm.. if that's the case then scheduled post is not "real time".
    So is it safe to assume that scheduled posts are not pinged?
    Signature

    {{ DiscussionBoard.errors[393183].message }}
  • Profile picture of the author globalpro
    As I understand it to work, if it posts, it pings.

    I schedule posts on quite a few blogs and it works like it should.

    Thanks,

    John
    {{ DiscussionBoard.errors[393192].message }}
  • Profile picture of the author Mark Brian
    I don't see how can it ping all by itself since the scheduled posts will only appear depending on the time the user viewed the blog. What if no user viewed the blog, then pinging will have never happened right?
    Signature

    {{ DiscussionBoard.errors[393197].message }}
  • Profile picture of the author carloanforall
    Hi,

    I was wondering what techniques/programs code developers find the best for protecting the PHP source code from buyers. There seem to be many solutions out there so I'm wondering what others have used and what their experience has been?
    {{ DiscussionBoard.errors[393507].message }}
  • Profile picture of the author Mark Brian
    I see... anyway I've done my research and all of them are quite conflicting but one thing is common among what I've read: If no user ever visit the site then no posting/pinging will occur, therefore the Wordpress scheduled post is not really "real time".
    Signature

    {{ DiscussionBoard.errors[396987].message }}
    • Profile picture of the author baca85
      Originally Posted by Jeff Hope View Post

      It's effectively the same thing as real-time.

      If no one is visiting the site, it doesn't really matter if an item is published at the exact moment it's supposed to be or not, since no one's there to read it.

      Once someone visits the site - and this could be a search spider - the item gets published and is available for all to see.

      BTW, the item will show as published at the original date & time it was scheduled, not the time it actually appeared on the site. And in recent versions of Wordpress, future scheduled posts are pinged when they're published by the same wp-cron trigger that publishes them.
      I think the reason the other person was concerned about pinging wasd to have the spiders come at what ever time the post is ment to go live. So that it generates traffic.

      Now some one suggested using a script on a your computer to load up a browser. Probable not handiest thing to happen. If you have your own server with cron capabilities and some scripting language such as PHP. You could set it up so that it loaded/accessed the script on the wordpress blog/s every hour or half hour. That would load trigger the post to happen. If you had more than wordpress blog and even blogspot. You could probable have script tell pingomatic/technorati or what ever to visit the about an update to the site.

      When ever you add a new blog added it to a database and how often you would want it to get pinged. I would image new blog you would only want it to happen on occasion.
      {{ DiscussionBoard.errors[409971].message }}
  • Profile picture of the author ltdraper
    If you're really concerned about having your post pinged at the correct time, then just set up a scheduled task on your PC to open a browser window with that URL at the specified time.
    Signature

    Nothing to see here, move along...

    {{ DiscussionBoard.errors[398570].message }}
    • Profile picture of the author ExtTrail2
      Jeff, thank you for the info, we had the same question.
      {{ DiscussionBoard.errors[409231].message }}

Trending Topics