• Resolved amitrr

    (@amitrr)


    Hello,

    Can anyone tell me that how to use Post Statuses as a select option.

    I want to use this feature when a user wants to submit the form. I want this is also on edit post form, a user can edit the post and can also save his post as draft till he does not want to submit the post as publish.

    How to use this feature?

    Thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Thanks for the feedback! The Post Statuses field provided in ACF extended is a field that will automatically list all available Post Status in the current WordPress installation. The field can be used by developers for several purposes, however it will not update the current post to the selected value. This feature is planned to come in a future version.

    You can however use it in the ACF Extended Form on the front-end, and map the field in the “Post Status” field of the Post Action, the value will then be used when the post is created/updated. See screenshot: https://i.imgur.com/wd21m3L.jpg

    Hope it helps!

    Regards.

    Hi all, a quick note to say that this works super well with the ACF Extended form, and it’s kind of a big deal :))
    Congrats and thank you to the devs of this plugin!
    Julien

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Thanks for the message of encouragement!

    If you enjoy this plugin, feel free to submit a review, it always helps and it’s much appreciated ??

    Have a nice day!

    Regards.

    Hi Konrad,
    This suddenly stopped working, both for post status and post author.
    This is true both in WP backend and in front end with the form.
    Any insights on your side?

    PS: I wrote to you a couple times via your website, please let me know if you are receiving the messages.

    Best to you,

    Julien

    • This reply was modified 3 years, 6 months ago by julien_e.
    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Thanks for the feedback! Your report is kinda lacking information tho. What do you mean by “stopped working”? The “Post Statues” field does not show post statuses values anymore, or it does not update the actual post status?

    You said on front-end and back-end, do you use ACFE Form or ACF Form? Also ACFE/ACF Form are front-end only, so I’m not sure how it would interfere with the back-end?

    I just tested it and it works fine on a blank WP install + ACF Pro + ACF Extended: https://i.imgur.com/P5or8Gf.mp4

    I would recommend to disable other plugins and use a blank theme (or Twenty Twenty One native theme) to make sure that there is no compatibility problem.

    Hope it helps!

    Note: Yes sorry, I was very busy lately, I answered you on twitter.

    Regards.

    Thx for the answer.

    My setup was:
    – ACF group which called the post status. I selected just Publish/Draft.
    – an ACFE form which used that group.
    – that form was on the front end with a select layout. It was placed in a loop to display posts.
    – until yesterday when I updated that form it would change the status of the post accordingly.

    We are launching tomorrow so I had to find a quick way around it and am now basically just resaving with the appropriate status (one form per status no fields in the form).

    When I mentioned backend I was talking about this screenshot, but anyways that was not the desired behavior. I needed it on front end:

    https://prnt.sc/12fv2qh

    Thx

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Okay. Please note that the “Post Statuses” field has no effect in the back-end, it’s just a field that list available Post Status. What actually change the status is the ACFE Form Front-End “Post Action”, which use that field value in the “Post Status” field. That action is not executed in the back-end.

    Regarding the status that isn’t changing, maybe you got some custom code which override the post status? If you use ACFE Form hooks like acfe/form/submit/post, please make sure that you don’t re-update the post status manually using wp_update_post() for example.

    A good way to debug it would be to setup a new “Test” Form, with a new “Test” Field Group with 1 text field and 1 Post status field, and make a simple test on Page, just like in my video.

    Once it works, add some complexity with your custom codes, use the field group that you used in your first Form etc… Until you find out what break the post status change.

    Hope it helps!

    Regards.

    Thanks for the followup Konrad.

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