Navigation überspringen

[Gelöst] How to craft a delete post link for a button?

This support ticket is created vor 1 year, 3 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 -

Zeitzone des Unterstützers: Asia/Kolkata (GMT+05:30)

Dieses Thema enthält 4 Antworten, hat 1 Stimme.

Zuletzt aktualisiert von cesarR vor 1 year, 3 months.

Assistiert von: Minesh.

Author
Artikel
#2795362
Clipboard01.jpg

Tell us what you are trying to do?
Craft a delete post link for use in a button

Is there any documentation that you are following?
No

Is there a similar example that we can see?
No

What is the link to your site?
versteckter Link (private)

#2795405

Minesh
Unterstützer

Sprachen: Englisch (English )

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

Hello. Thank you for contacting the Toolset support.

Well - as I understand you want to link the button block with CRED delete post link? If this is correct - then you can add the button block and take its rendered HTML abd adjust the delete post link.

Please check the following related ticket:
- https://toolset.com/forums/topic/delete-a-post-in-a-view-loop-using-a-button/#post-2737980

#2795442

Thanks, that snippet is not working anymore and don't know why... it just stopped working and once I re insert it, it becomes corrupt/unusable and the system try to fix it, rewriting it.

isn't there any other way to craft a delete post link for use in a button?

#2795501

Minesh
Unterstützer

Sprachen: Englisch (English )

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

Can you please share problem URL on what page/post you want to add the button with the cred delete post link?

You can setup normal button as per your requirement and share and I will try to help you to connect the delete post link to it.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2795622

I was just trying to save some time using the toolset button widget for the formatting options, but I could not use the "cred-delete-post" shortcut in the button link input, the shortcode output is not compatible as a button link.

Thanks.

#2795623

I used a html block widget to format a div as a box with background color and a fontawesome icon. inserted the [cred-delete-post type="link"] and it was done

<div style="...">
	[cred-delete-post type="link" action="trash" onsuccess="self"]
		<i style="font-style: normal;font-family: FontAwesome;color:#FFF" class="fa-solid fa-trash"></i>
	[/cred-delete-post]
</div>