Saltar navegación

[Resuelto] [cred_delete_post_link ] Shortcake

This support ticket is created 3 years, 8 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 -

Zona horaria del colaborador: Asia/Kolkata (GMT+05:30)

Este tema contiene 7 respuestas, tiene 3 mensajes.

Última actualización por Minesh 3 years, 7 months ago.

Asistido por: Minesh.

Autor
Mensajes
#2471233

Tell us what you are trying to do?

Hi my delete posts shortcake works fine expect for redirecting/refreshing after deletion.

[cred_delete_post_link text="<i style='color:red;' class='fa fa-trash-o'>" action='trash' redirect='self' message='Are you sure you want to trash this resource.' message_show='1' onsuccess='self']

Is there any documentation that you are following?

No documentation for that Shortcake.

#2471313

Nigel
Colaborador

Idiomas: Inglés (English ) Español (Español )

Zona horaria: Europe/London (GMT+01:00)

Here's the documentation for the cred-delete-post shortcode if you want to review it: https://toolset.com/documentation/programmer-reference/forms/cred-shortcodes/#cred-delete-post

Does that meet your needs?

#2471323

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

It seems it's missing the class attribute.

What if you try to use the following shortcode with class attribute that has class name "cred-refresh-after-delete":

[cred_delete_post_link class='cred-refresh-after-delete' text="<i style='color:red;' class='fa fa-trash-o'>" action='trash' redirect='self' message='Are you sure you want to trash this resource.' message_show='1' onsuccess='self']
#2471331

Hi Nigel & Minesh,


@Nigel the shortcode in your documentation is not the same as I am referring to.

@ Minesh still nacho with that class.

I get the following "url" maybe that helps in finding the issue.

enlace oculto

#2471777

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Can you please share problem URL where you added the shortcode as well as admin access details.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin) 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.

#2473897

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

I've adjusted the shortcode to redirect on the self page and add the ID of the self page:

<span style="float:right">[cred_delete_post_link class='cred-refresh-after-delete' text="<i style='color:red;' class='fa fa-trash-o'></i>" action='trash' redirect='10755' message='Are you sure you want to trash this resource.' message_show='1' onsuccess='10755']</span>

Can you please confirm the page is reloaded now when you click on delete link.

#2473951

Hi Minesh,

I can confirm it does reload now.

But the # and parameters get lost.

E.g. enlace oculto

So is someone where to delete something on that tab he is not brought back.

#2474011

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

I got it what you are saying but there is no such feature exist to manage the hash tags or URL params. You will have to provide just redirect page/post ID and to that post/page ID it will be redirected.

I see your point and there is a space where can improve and I'll take a note but there is no ETA on it when the feature will be added.