Skip Navigation

[Escalado a 2º nivel] Post status of "original" being set for some posts.

This support ticket is created hace 3 años, 6 meses. 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

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)

Este tema contiene 4 respuestas, tiene 3 mensajes.

Última actualización por Luo Yang hace 3 años, 6 meses.

Asistido por: Luo Yang.

Autor
Mensajes
#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

Idiomas: Inglés (English ) Español (Español )

Zona horaria: 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

Los hilos nuevos creados por Luo Yang y vinculados a este se encuentran a continuación:

https://toolset.com/es/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/