Passer la navigation

[Résolu] add delete post button to front end post form

This support ticket is created Il y a 3 years, 2 months. 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 -

Fuseau horaire du supporter : Asia/Kolkata (GMT+05:30)

Ce sujet contient 5 réponses, a 2 voix.

Dernière mise à jour par Minesh Il y a 3 years, 1 month.

Assisté par: Minesh.

Auteur
Publications
#2588453

add delete post button to front end post form

#2588567

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Can you please share bit more details what exactly you want to delete and what post?

Do you mean you want to delete the last post created using the frontend from?

#2589991

(1) Add a Delete button to delete the post on which the Post Edit Form is on.
lien caché

(2) Delete a relationship. where this delete button is in the relationship form and deletes the relationship in the look: The post in the screenshot is related to the page on which it is. We need to add a delete button somewhere that will delete the relationship.
lien caché

#2590349

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

You can add the delete button/link using the following shortcode:

[cred_delete_post_link action="trash" text="Delete %TITLE%" message_after="Post deleted" message="Are you sure you want to delete this post?" message_show="1"]

Do you see when you delete the post it also disconnect the posts as well?

#2590715

great!!
But how can I delete just the relationship, from the front end?

#2590887

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

You can use the Toolset Form's shortcode: [cred-delete-relationship]

You should use the GUI to add the above shortcode from the "Toolset Forms" button.

More info:
- https://toolset.com/documentation/programmer-reference/forms/cred-shortcodes/#cred-delete-relationship