Skip Navigation

[Résolu] Link from pictures

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 link their featured image to their posts.

Solution:

This can be done by doing the following.


<a href='[wpv-post-url]'>[wpv-post-featured-image ]</a>

This support ticket is created Il y a 4 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.

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
- 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é : 

This topic contains 4 réponses, has 2 voix.

Last updated by RolfF2342 Il y a 4 années et 8 mois.

Assisted by: Shane.

Auteur
Publications
#1308005

Please have a look to
hidden link or
hidden link

There you find our searchform and below the search results:
- Title with Link
- Photo
- Short Description, Keywords

The problem:
Right now if you hover over the pictures/photos with the mouse it's not possible do open the link to the custom post type. It's onle possible by hovering over the title!

Is it possible and how to set a code that the photo is also linking to the custom post type of the chosen object?

#1308019

Shane
Supporter

Languages: Anglais (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Rolf,

The issue is that the image is not attached to a link.

To resolve this all you need to do is wrap the shortcode for the image in an A tag.


<a href='[wpv-post-url]'>Shortcode goes here</a>

Doing this should allow your images to be clickable to the post.

Thanks,
Shane

#1308025

The template of the view of Ski-Finder is the following:

[wpv-post-featured-image size="custom" width="100" height="400" class="center-block"]
<Br><h6>[wpv-post-link]</h6></Br>
<p>Länge: [types field='lange'][/types]</p>
<p>Mittelbreite: [types field='mittelbreite'][/types]</p>
<p>Radius: [types field='radius'][/types]</p>
<p>Gewicht: [types field='gewicht'][/types]
<p>Preis: [types field='preis'][/types]</p>

Where shall I put your code or how that all pictures links to the custom posts?

#1308031

Shane
Supporter

Languages: Anglais (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Rolf,

It should be done like this.


<a href='[wpv-post-url]'>[wpv-post-featured-image size="custom" width="100" height="400" class="center-block"]</a>

Please let me know if this helps.
Thanks,
Shane

#1308095

My issue is resolved now. Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.