Skip Navigation

[Resolved] Redirect after Deleting Post with Toolset Forms

This thread is resolved. Here is a description of the problem and solution.

Problem:

Display a form link which to delete that post.

Solution:

Please try shortcode [cred-delete-post].

Relevant Documentation:

https://toolset.com/documentation/user-guides/front-end-forms/cred-shortcodes/#cred-delete-post

This support ticket is created 3 years, 11 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)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by davidL-7 3 years, 11 months ago.

Assisted by: Luo Yang.

Author
Posts
#1621635

I have a page that displays a form built with Toolset form to edit a post which also has a link to delete that post. The delete link works, but I'd like to get it to redirect to another page after performing the delete and am unable to get it to do so. Here's the code I'm using:

[cred_delete_post_link text="Delete This Resource" action="trash" message_after="This resource has been deleted" redirect="9190"]

...trying to redirect to the page with ID 9190.

Am I doing something wrong?

Thanks!
David

#1622453

Hello,

Please try to modify your codes as below and test again:

[cred_delete_post_link action='trash' redirect='9190' message='This resource has been deleted' message_show='1' class='cred-refresh-after-delete']Delete This Resource[/cred_delete_post_link]

More help:
https://toolset.com/documentation/user-guides/front-end-forms/cred-shortcodes/#cred-delete-post

#1623459

That worked... Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.