Skip Navigation

[Resolved] Post delete link -> directing to next page not working with a second class in it

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

Problem:
Post delete link -> directing to next page not working with a second class in it

Solution:
The user did not add the delete post link shortcode correctly. We have corrected that and that help user to resolve his issue.

For example:

[cred_delete_post_link action='trash' text='Job löschen' redirect='547' message_after='Beitrag wurde gelöscht' message='Wollen Sie diesen Beitrag wirklich löschen?' message_show='1' class='btn btn-danger cred-refresh-after-delete' ] 

Relevant Documentation:
https://toolset.com/documentation/user-guides/cred-shortcodes/#cred_delete_post_link

This support ticket is created 5 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 2 replies, has 2 voices.

Last updated by SteffenM1628 5 years, 11 months ago.

Assisted by: Minesh.

Author
Posts
#1158562

I am trying to:
here you have my shortcode which is in a content template:

[cred_delete_post_link action='trash' text='Job löschen' redirect='547' message_after='Beitrag wurde gelöscht' message='Wollen Sie diesen Beitrag wirklich löschen?' message_show='1' class='btn btn-danger' 'cred-refresh-after-delete' ] 
[/wpv-conditional]

after deleting the post it should be redirected but it won´t work because the refresh is not being executed.
after deleting the bootstrap button class. all works fine.
i guess the two classes are the problem.

hope you can help

#1158622

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - I can see that there is a little issue how you added the class attribute with the delete post link shortcode. With your shortcode, you did not close the class attribute using single quote properly.

I adjusted it and could you please try to use following shortcode:

[cred_delete_post_link action='trash' text='Job löschen' redirect='547' message_after='Beitrag wurde gelöscht' message='Wollen Sie diesen Beitrag wirklich löschen?' message_show='1' class='btn btn-danger cred-refresh-after-delete' ] 
#1158916

My issue is resolved now. Thank you!