Skip Navigation

[Resuelto] Duplicate post from list without using forms

This support ticket is created hace 6 años, 5 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)

Etiquetado: 

Este tema contiene 3 respuestas, tiene 2 mensajes.

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

Asistido por: Luo Yang.

Autor
Mensajes
#913424
toolset_-_Showscreen.png

Hi!
In our project we made a view of a post type called "publicaciones" with three action buttons: Delete - Duplicate - Unpublish.
At the beginning it worked perfect, but when our clients where using this page, we detected a lot of 503 errors due to a repetitive call to wp-admin/admin-ajax.php per each line of results. If we remove duplicate and unpublish buttons we fix the issue. (Please, see the attached image)

Our question is:
¿There is any way to do those actions from list results just using a link and a shortcode? I mean without using a cred form to show the action buttons.

Another question:
¿Is there any way to add a check at the beginning of each row to unpublish or publish some posts at the same time?

Is there any documentation that you are following?
We implemented that using CRED forms with button:
https://toolset.com/documentation/getting-started-with-toolset/publish-content-from-the-front-end/

Thanks in advance for your time!

#913674

Hello,

Q1) There is any way to do those actions from list results just using a link and a shortcode? I mean without using a cred form to show the action buttons.

No, there isn't such kind of feature without Toolset forms plugin.

But there isn't built-in "Duplicate post"(copy) feature within Toolset form, you can create/edit/delete posts with Toolset form, for example the delete post link:
https://toolset.com/documentation/user-guides/cred-shortcodes/#cred_delete_post_link

For the Duplicate post feature, you might try other plugins, for example:
https://wordpress.org/plugins/search/Duplicate+Post/

Q2) Is there any way to add a check at the beginning of each row to unpublish or publish some posts at the same time?
Unfortunately, there isn't such kind of feature within Toolsets, one Toolset form can handle only one post at the same time.

#913791

Really is there no way to prevent the forms to call "wp-admin/admin-ajax.php" on each line of results?

Truly I'm not so happy with the answer, Luo. 🙁

#913804

I think there are some misunderstandings.

For the new question:
Really is there no way to prevent the forms to call "wp-admin/admin-ajax.php" on each line of results?
Same as above, no, calling "wp-admin/admin-ajax.php" is required to load a Toolset form in front-end.

And there is workaround, you can setup some a link to a wordpress page, and pass the URL parameter "post ID" to the target page, in that page, setup a post view, filter by post ID:
https://toolset.com/documentation/user-guides/filtering-views-query-by-post-id/
Then display the CRED form delete/edit link in the view's loop