Title: Issue with Scheduling Posts
Last modified: May 21, 2025

---

# Issue with Scheduling Posts

 *  Resolved [siergiejto](https://wordpress.org/support/users/siergiejten/)
 * (@siergiejten)
 * [1 year ago](https://wordpress.org/support/topic/issue-with-scheduling-posts/)
 * Hello,
 * I’m experiencing an issue when scheduling posts to multiple networks:
 * When I schedule a single post to both Facebook and Twitter from the same pop-
   up, only the Twitter post is sent; the Facebook post is ignored unless I select“
   Publish Now.”
 * As a result, I have to schedule each network separately and refresh the page 
   every time.
 * I initially suspected a cron-related problem, so I tried staggering the times(
   Twitter at 12:00, Facebook at 12:11), but again only the Twitter post went through.
 * Has anyone else encountered this behavior? It’s not critical, but it’s becoming
   frustrating, and I’d appreciate any insights into what might be causing it.
 * Thank you for your help!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [Val Meow](https://wordpress.org/support/users/valwa/)
 * (@valwa)
 * [1 year ago](https://wordpress.org/support/topic/issue-with-scheduling-posts/#post-18482385)
 * Hey [@siergiejten](https://wordpress.org/support/users/siergiejten/)! 👋
 * Could you go into the **Advanced** tab and enable the logs? The next time you
   schedule a post and only one gets sent, check the log—if a post isn’t sent for
   any reason, there should be something written there explaining why. Let me know
   what you find. Thanks!
 *  Thread Starter [siergiejto](https://wordpress.org/support/users/siergiejten/)
 * (@siergiejten)
 * [11 months, 3 weeks ago](https://wordpress.org/support/topic/issue-with-scheduling-posts/#post-18516024)
 * **Problem**
    When you schedule two social posts for exactly the same minute (
   but different seconds), only the first one ever fires. The second one stays in`
   future` status and is never published—unless you click “Publish now,” which bypasses
   WP-Cron altogether and loops through both networks immediately.
 * —
 * **Technical details**
 * * **Custom post type**: `social_post` is registered in `classes/core.php` via`
   register_post_type()`.
    * **Scheduling**: In `create_social_post()` (same file),
   the plugin does:
 *  `php
    $post_date = $date->format(‘Y-m-d H:i:s’); wp_insert_post([ ‘post_date’
   => $post_date, ‘post_status’ => ‘future’, ‘post_type’ => ‘social_post’, /* … */]);`
 *  That fires WP Core’s `_schedule_post_hooks()` on `transition_post_status`, which
   calls
 *  `php
    wp_schedule_single_event( strtotime($post->post_date_gmt), ‘publish_future_post’,[
   $post->ID ] ); ` * **WP-Cron trigger**: You’re using a system cron that does
 *  `
    wget -q -O – ‘[https://your-site.pl/wp-cron.php?doing_wp_cron&#8217](https://your-site.pl/wp-cron.php?doing_wp_cron&#8217);
   >/dev/null 2>&1 `
 *  once per minute.
    * **Why it breaks**: On each `wget` run (say at `14:05:00`),
   WP-Cron will only execute events scheduled **≤14:05:00**. A post set for `14:
   05:17` or `14:05:30` is still “in the future” at second 0, so it waits for the
   next cron tick. But that next tick often never runs (due to lack of traffic, 
   HTTP caching of `wp-cron.php`, etc.), so those events never fire. * **No built-
   in recovery**: Unlike core’s handling for the default `post` type (where WP re-
   schedules missed publishes on init), the plugin has **no fallback** to scan and
   publish overdue `social_post` entries.
 * —
 * **Suggested feature**
    Add a small internal cron hook—fired on every WP-Cron 
   invocation—that:
 * 1. Queries for all `social_post` with
 *  * `post_status = 'future'`
    * `post_date <= current_time('mysql')` 2. Calls `
   wp_publish_post( $post_id )` on each one.
 * That way, **no scheduled social post ever gets skipped**, regardless of its seconds-
   offset or how often `wp-cron.php` actually runs.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Issue with Scheduling Posts’ is closed to new replies.

 * ![](https://ps.w.org/social-engine/assets/icon-256x256.png?rev=2791578)
 * [Social Engine](https://wordpress.org/plugins/social-engine/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/social-engine/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/social-engine/)
 * [Active Topics](https://wordpress.org/support/plugin/social-engine/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/social-engine/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/social-engine/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [siergiejto](https://wordpress.org/support/users/siergiejten/)
 * Last activity: [11 months, 3 weeks ago](https://wordpress.org/support/topic/issue-with-scheduling-posts/#post-18516024)
 * Status: resolved