WordPress.org

Ready to get started?Download WordPress

Forums

Edit Flow
[resolved] Calendar not publishing posts (7 posts)

  1. avsa
    Member
    Posted 1 year ago #

    Currently I use the wp-calendar, but I really want to switch to edit flow, but I can't understand why it doesn't work for me, and have been frutratingly trying it for months

    The way I work in wp-calendar usually is: an author writes a post in draft. After it's done he communicates to me that the post is ready and I drag it from the draft drawer to a future date in wp-calendar, so the post becomes from draft to scheduled. When the day arrives, the post then becomes published and I'm happy.

    I created multiple post status in edit flow: "draft", "ready for review", "ready for publishing" etc. But how exactly do I change the behavior (can it be scheduled? is it public?) of the post status?

    When I drag a "ready for publishing" post to a future date in the calendar, it doesn't become "scheduled". In fact it keeps being "ready for publishing" until I manually change it to "published". So dragging posts in the calendar doesn't schedule them, just moves their "draft date". How am I supposed to schedule posts in edit flow then?

    Thanks!

    http://wordpress.org/extend/plugins/edit-flow/

  2. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 1 year ago #

    You can change the behavior by adding this to your theme's functions.php file:

    apply_filters( 'ef_calendar_allow_ajax_to_set_timestamp', '__return_true' );

  3. avsa
    Member
    Posted 1 year ago #

    I'm sorry, maybe I wasn't clear on my question but this doesn't really answer me at all...

    I added that line to my functions.php but honestly it didn't change anything. I created a new draft, then changed it to "pronto para publicar" ("ready for publishing"), moved it around on the calendar but at no point it became "scheduled". It just keeps being a draft in wordpress' view, and when the date comes it ignores it and never publishes.

    And how could wordpress even know the difference? How is wordpress supposed to know that "pronto para publicar" means it's ready to be scheduled and posted, since I never told it anywhere and I assume it doesn't understand either portuguese (or cares on what I name things)?

  4. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 1 year ago #

    Oh, I see what you're talking about. The code snippet I gave you will change the post timestamp. You'd then need to go into the post and mark it as "Published" or "Scheduled".

    We'll consider the ability to change the actual post status from the calendar in a future release.

  5. avsa
    Member
    Posted 1 year ago #

    Oh I see. The calendar is meant to be just informative then, I got the wrong impression then.

    Out of curiosity, then what's the default behavior without that code snippet? If it doesn't change the timestamp by default, what's supposed to happen when I drag posts around?

  6. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 1 year ago #

    Out of curiosity, then what's the default behavior without that code snippet? If it doesn't change the timestamp by default, what's supposed to happen when I drag posts around?

    It's to allow you to drag the posts around the calendar without setting the timestamps.

    For instance, if you dragged a post to Monday, and then didn't get around to publishing it until Friday, the publication timestamp would be Friday instead of Monday. This is to keep you from accidentally publishing posts in the past (or scheduling in the future) unless you opt into it.

  7. avsa
    Member
    Posted 1 year ago #

    Ok thanks!

    This was very helpful, I should probably use editorial calendar for what I was looking for then.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.