Skip Navigation

[Resolved] CRED Delete Post Link inside a CRED Form

This support ticket is created 7 years, 2 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.

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)

Tagged: 

This topic contains 6 replies, has 2 voices.

Last updated by marcoR-6 7 years, 2 months ago.

Assisted by: Minesh.

Author
Posts
#565515

Hi,
I've created a view that create a list of CRED Form. In each CRED Form, I need to show a button to delete the post. I've tried to add in my CRED this: [cred_delete_post_link class='cred-refresh-after-delete' text='DELETE' message='Are you sure?' message_show='1' action='trash']

But I cannot see the button... I've set permission's cred to all logged user, and I'm logged in my site.

How can I show the Delete button in my CRED?

Thanks,
M.

#565555

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Well - I just tested with my local test site and I can see the CRED Delete post link works absolutely fine. I've added following code to add Delete post link.

[cred_delete_post_link class='cred-refresh-after-delete' text='Delete' message='Are you sure you want to delete this post?' message_show='1' action='trash']
#565568

Hi Minesh,

That line of code works inside a CRED Form? I've tried and works for example in a View... But not inside a CRED form..

#565571

Minesh
Supporter

Languages: English (English )

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

Well - you said you have list of CRED forms - so are you displaying CRED edit form? are you displaying those CRED forms using view?

Could you please share code how you are displaying CRED form - and where exactly you would like to display the CRED delete link.

In general, You should add CRED delete link outside the CRED from. I wonder why you want to add CRED delete post link within the CRED form.

#565598
Schermata 2017-08-31 alle 16.52.18.png

Hi Minesh,
thank you for your reply.
Yes, I display cred forms using a view, because I need to do something like the image that I've uploaded.

#565772

Minesh
Supporter

Languages: English (English )

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

Well - again to clear the doubt.

Are you going to display CRED Edit form or Create Form? If yes, as are going to display Edit form, you can display your CRED form and besides that just put the Delete link.

#565939

OK,
thank you!