Saltar navegación

[Resuelto] make a button with archive link

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

Problem:

The issue here is that the user wanted to make their archive link into a button when using the [wpv-archive-link name='archive name'] shortcode

Solution:

This can be done by wrapping the link into anchor tags then styling that anchor tag to look like a button.

Example


<a href="[wpv-archive-link name='projet']">My Link</a>

This support ticket is created hace 5 años, 8 meses. 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
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Etiquetado: 

Este tema contiene 2 respuestas, tiene 2 mensajes.

Última actualización por ericK-4 hace 5 años, 7 meses.

Asistido por: Shane.

Autor
Mensajes
#1330767

I want to make a button to link to the archive page of my projets custom post type
I make this :
Voir tous les projets
but it doesn't work

#1330913

Shane
Colaborador

Idiomas: Inglés (English )

Zona horaria: America/Jamaica (GMT-05:00)

Hi Eric,

Thank you for contacting our support forum.

I think the issue here is because of a missmatch of the quotes you are using. You should use single quotes inside the double quotes.

Example.


<a href="[wpv-archive-link name='projet']">Voir tous les projets</a>


Please let me know if this helps.
Thanks,
Shane

#1334759

My issue is resolved now. Thank you!