Sauter la navigation

[Résolu] make a button with archive link

Ce fil est résolu. Voici une description du problème et la solution proposée.

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 Il y a 5 années et 8 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.

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)

Marqué : 

Ce sujet contient 2 réponses, a 2 voix.

Dernière mise à jour par ericK-4 Il y a 5 années et 7 mois.

Assisté par: Shane.

Auteur
Publications
#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
Supporter

Les langues: Anglais (English )

Fuseau horaire: 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!