Skip Navigation

[Resolved] add delete post button to front end post form

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)

This topic contains 5 replies, has 2 voices.

Last updated by Minesh 1 year, 5 months ago.

Assisted by: Minesh.

Author
Posts
#2588453

add delete post button to front end post form

#2588567

Minesh
Supporter

Languages: English (English )

Timezone: 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.
hidden link

(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.
hidden link

#2590349

Minesh
Supporter

Languages: English (English )

Timezone: 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

Languages: English (English )

Timezone: 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

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