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!
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.
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. 🙁
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