Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Michael Simpson

    (@msimpson)

    Is it possible to do that when you manually create a post? If you can, then maybe we can set that parameter in the form.

    Thread Starter cjohnson26

    (@cjohnson26)

    Yeah – when manually creating a post, you can select a future date and time and instead of “publishing” the post, it can be “scheduled” (the button to update the post literally changes to “schedule”).

    Other plugins (like Jetpack) allow the same feature with the shortcode something like: [delay +2 hours]

    Not sure what you have in mind, but the additional parameter would be awesome!

    Plugin Author Michael Simpson

    (@msimpson)

    This plugin is just a wrapper around creating a post. So you can add post_date field to your form and it should set that. Set post_status field post_status to ‘future’ I suppose.

    Thread Starter cjohnson26

    (@cjohnson26)

    Thanks. So, I’ve done that and see that the date/time gets applied properly, but the post_status does not accept future – it won’t go to the “scheduled” status. Everything goes to the “published” status immediately, even though it will have a future date/time.

    Any thoughts on why this may be? I’m not sure how to fix it. I wonder if there is a way to set the default status as scheduled for all posts…

    Plugin Author Michael Simpson

    (@msimpson)

    According to WP documentation, your options for post status are:
    ‘post_status’ => [ ‘draft’ | ‘publish’ | ‘pending’| ‘future’ | ‘private’ | custom registered status ]

    I don’t see “scheduled”

    https://codex.www.ads-software.com/Function_Reference/wp_insert_post

    Thread Starter cjohnson26

    (@cjohnson26)

    Right, I used the ‘future’ post status. On the admin dashboard, when looking at the list of posts, the status term is “scheduled”.

    I’m thinking the issue may be with another plugin I have installed or something. I’m not sure why the ‘future’ status is not working.

    Hey, awesome plugin, I also just want created posts to be set to future, or draft so I can check to see if they are not spam or contain content I do not want on my site.

    Where do I change the post status? Do I need a hidden field in my form that says something like: [text post_status "draft"] ?

    As you can see I am not such a wonder with editing plug-ins ?? A nudge in the right direction is much appreciated

    Plugin Author Michael Simpson

    (@msimpson)

    Yes. If you make it a hidden field (Contact Form 7 Modules), that would be better. But a hacker could still change that value on his form. Look at the bottom of https://www.ads-software.com/plugins/form-to-post/ for a more secure way to set that on the server side.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Delay Post’ is closed to new replies.