• I must be stupid, I can’t find a way to publish 2 posts per day.

    I have set the period of the day (7am to 7pm), I’m running the scheduler every 3 to 5 hours, I have set it to process 2 posts each time, with a maximum of 2 posts per day.

    But it’s still publishing one post a day only. What am I doing wrong ?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author johnh10

    (@johnh10)

    Verify there are 2 eligible posts for APS to find.
    Turn on debug mode and look for something similar to

    2018-09-17 08:53:57 - DEBUG: eligible posts WP_Query Array ( [posts_per_page] => 2 [cat] => 8276,8277,1 [author] => 1,2 [post_type] => Array ( [0] => post ) [ignore_sticky_posts] => 1 [post_status] => Array ( [0] => draft ) [order] => ASC ) 
    2018-09-17 08:53:57 - DEBUG: found 2 results.
    Thread Starter risbac

    (@risbac)

    Hi ! Thanks for your answer.

    Yes I did, and it works fine. the debug info shows 2 results, but they are scheduled on different days :

    “2018-09-17 08:00:22 – DEBUG: aps_auto_post_hook triggered, looking for eligible posts…
    2018-09-17 08:00:22 – DEBUG: eligible posts WP_Query Array ( [posts_per_page] => 2 [cat] => 13 [author] => [post_type] => Array ( [0] => post ) [ignore_sticky_posts] => 1 [post_status] => Array ( [0] => draft ) [order] => ASC [orderby] => rand )
    2018-09-17 08:00:22 – DEBUG: found 2 results.
    2018-09-17 08:00:22 – DEBUG: processing post Sunset
    2018-09-17 08:00:22 – DEBUG: wp_update_post Array ( [ID] => 2463 [post_status] => publish [post_date_gmt] => 2018-09-17 06:00:22 [post_date] => 2018-09-17 08:00:22 )
    2018-09-17 08:00:22 – draft POST id 2463 PUBLISHED : ‘Sunset’
    2018-09-17 08:00:22 – DEBUG: processing post Puy Mary
    2018-09-17 08:00:22 – DEBUG: wp_update_post Array ( [ID] => 2656 [post_status] => publish [post_date_gmt] => 2018-09-17 06:00:22 [post_date] => 2018-09-17 08:00:22 )
    2018-09-17 08:00:22 – draft POST id 2656 PUBLISHED : ‘Puy Mary’
    2018-09-17 08:00:23 – DEBUG: wp_next_scheduled for 2018-09-17 11:39:38 .

    The first one was scheduled to tomorrow (there was already one post scheduled for today), the next one to Wed.

    What I don’t understand very clearly is how it’s deciding of the period to use to publish. The 3-5 hours defines when the scheduler will run, but is it also the period when it should publish ? Or is it only using the period of the day that is set in the other setting ?

    Thread Starter risbac

    (@risbac)

    also maybe it’s easier if I explain what I would like : 2 posts, published every day, at a random time between 7am and 7pm.

    Plugin Author johnh10

    (@johnh10)

    I don’t know what you mean “scheduled on two different days”. Both posts were both published on 2018-09-17 08:00:22, not one post like you described.

    >2 posts, published every day, at a random time between 7am and 7pm.

    Auto Post Schedule 4-6 hours
    Time range(s) 0700-1900 each day
    Number of Posts 1
    Max Posts per Day 2

    Thread Starter risbac

    (@risbac)

    Oh I think I understand. Another plugin is interfering. They were probably published the same day, but the other pluging delayed them. I will deactivate it and put your settings. Thanks !

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to publish 2 posts a day ?’ is closed to new replies.