WordPress.org

Ready to get started?Download WordPress

Forums

wp_schedule_event not working correctly in WP 2.7.1 ?! (4 posts)

  1. Thomas Hoefter
    Member
    Posted 5 years ago #

    Hi,

    I was using wp_schedule_event in a custom plugin I created and it was working fine until I updated from 2.7 to 2.7.1 yesterday.

    Now when I use this (for example, have already tried many different things):

    wp_schedule_event(time(), 'daily', 'my_function' , $num );

    it schedules everything correctly BUT not once daily! ... instead it will fire the event every few minutes!

    I already tried using different functions, time spans, etc.
    Is this a known bug of 2.7.1? Or is there something that has changed in 2.7.1 related to scheduling events (already looked through the changelog but didn't see anything).

    Hope someone can help me with this!
    Thanks.

  2. Thomas Hoefter
    Member
    Posted 5 years ago #

    No one who can help me?

  3. Americaninlima
    Member
    Posted 5 years ago #

    I'm interested in a response to this too. I was disappointed to find out, when I installed 2.6, that WordPress could not automatically schedule the publishing of posts in advance. I was hoping that 2.7 would offer this feature, but it appears from your comment that it does not and that you have been relying on a plugin you created yourself.

    Any info on auto scheduling posts for those of us who can't always post from the field when we're traveling in remote areas?

  4. David Miller
    Member
    Posted 4 years ago #

    I found this topic because a plugin I created called Auto-Schedule Posts stopped working after I upgraded to WP 2.9. Everything seems to work on the plugin except that the scheduled event that calls the function to publish scheduled posts does not seem to be firing. When I call the publish function it works but the scheduled event no longer does.

    As for your problem, my plugin could be what you are looking for - when I get it working again. Or, you can always change the timestamp when writing posts and the posts will automatically publish at the time you set. I'm not sure if that is what you are looking to do or if you want WordPress to manage the publishing time for you (like my plugin does).

    Hope that helps.

Topic Closed

This topic has been closed to new replies.

About this Topic