Skip Navigation

[Resolved] Link from pictures

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

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 5 years, 4 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 4 replies, has 2 voices.

Last updated by RolfF2342 5 years, 4 months ago.

Assisted by: Shane.

Author
Posts
#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: English (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: English (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!