Skip Navigation

[Resolved] make a button with archive link

This thread is resolved. Here is a description of the problem and solution.

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 5 years, 5 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
- 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)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by ericK-4 5 years, 4 months ago.

Assisted by: Shane.

Author
Posts
#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

Languages: English (English )

Timezone: 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!