Skip Navigation

[Résolu] Poner una classe dentro de un Shortcode

This support ticket is created Il y a 2 années et 2 mois. 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+01:00)

This topic contains 1 réponse, has 2 voix.

Last updated by Nigel Il y a 2 années et 2 mois.

Assisted by: Nigel.

Auteur
Publications
#2289363

Hola Buenos dias, tengo este Shortcode que muetra las categorias de una entrada,

[wpv-post-taxonomy type="categoria-noticia"]

Ahora muetra un enlace de cada categoria lo que necesito es canviar el enlace por un button, como podria hacer para que dentro del chortcode pudiera poner una class o directamente indicarle que en lugar de un link que sea un button.
Si solo es una sola categoria no habria problema pero en el caso que tenga varias categoria, no se como hcerlo.
Un Saludo.
Rafa Corts

#2289547

Nigel
Supporter

Languages: Anglais (English ) Espagnol (Español )

Timezone: Europe/London (GMT+01:00)

Hola Rafa

Por defecto cuando hay varias términos se usa una coma como separador, pero se puede personalizarlo.

En este caso podemos efectivamente envolcrar cada enlace en un elemento button así:

<button class='mi-clase'>
[wpv-post-taxonomy type="categoria-noticia" separator="</button><button class='mi-clase'> "]
</button>
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.