Skip Navigation

[Escalated to 2nd Tier] Post status of "original" being set for some posts.

This support ticket is created 3 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 4 replies, has 3 voices.

Last updated by Luo Yang 3 years, 7 months ago.

Assisted by: Luo Yang.

Author
Posts
#2058145

I am trying to:
I have a custom post type with front end input form with woo, below are the status settings for the new post form.
Set this post status: Draft

Purchase processing: Draft
Purchase complete: Published
Purchase refunded: Published

And I have an edit post form, Set this post status: Keep original Status

Link to a page where the issue can be seen:

I expected to see:
Some posts seem to be getting as post status of original, and I cannot see where this is coming from, I have grep'ed my customisations for original and it is showing nothing. My only guess is the " Keep original Status" is somehow failing. But I am getting it before the post is ever edited. so Im at a loss. I cannot find any reference to this status anywhere.

#2058243
original post status.JPG

Trying to use the below code to fix the posts also doesn't seem to help.

 // Puslish post 37
  $my_post = array(
      'ID'           => 37,
      'post_status'   => 'publish',
  );
  
// Update the post into the database
  wp_update_post( $my_post ); 
#2058287

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Ian

This is a known issue, and it is slated to be worked on in the upcoming dev cycle.

See https://toolset.com/errata/posts-published-with-forms-disappear-after-completing-woocommerce-order/

#2058863

How can I update lots of these posts at once, the above code I used does nothing

New threads created by Luo Yang and linked to this one are listed below:

https://toolset.com/forums/topic/how-can-i-update-lots-of-these-posts-at-once/

#2059301

Hello,

For the first question:
https://toolset.com/forums/topic/post-status-of-original-being-set-for-some-posts/#post-2058145

It has been escalated, I will update here if there is any news, and you can check the issue status in our erratum here:
https://toolset.com/errata/posts-published-with-forms-disappear-after-completing-woocommerce-order/

For the second question, please check the new thread here:
https://toolset.com/forums/topic/how-can-i-update-lots-of-these-posts-at-once/