Navigation überspringen

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

Dieser Thread wurde gelöst. Hier ist eine Beschreibung des Problems und der Lösung.

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 vor 6 Jahren. 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
- 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)

Dieses Thema enthält 2 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von SteffenM1628 vor 6 Jahren.

Assistiert von: Minesh.

Author
Artikel
#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

Sprachen: Englisch (English )

Zeitzone: 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!