Skip Navigation

[Resolved] fgfgfg

This support ticket is created 7 years, 2 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.

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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Christian Cox 7 years, 2 months ago.

Assisted by: Christian Cox.

Author
Posts
#563188
Screenshot at Aug 24 12-17-44.png

Hi,

I'm using a content template on my site called 'Grid Item', I am trying to link the image to the post link.

However, when you click on the image, it links through the .jpg file of the post instead.

Please could you let me know how to change it so it links to the post?

Many thanks,

Lewis

#563275

Hi, I'm not familiar with the wpuf shortcode I see now in your Content Template, but here's the way you would do this with Toolset:
- Delete the wpuf shortcode.
- Write your own link tag, and fill in the href value with the current post's URL. In the Text tab of your WP Text module:

<a href="[wpv-post-url]">test</a>

- Test the results, and make sure the link sends you to the correct destination. If it does, you can replace the "test" text with the current wpuf-meta shortcode to display the image:

<a href="[wpv-post-url]">[wpuf-meta name='main_image' type='image']</a>

Since you're using a WPUF meta field to store the image instead of a Types field, I'm not quite sure how to output your image, so the sample above may not work for you. You will have the best luck asking their support team how to output the image inside a custom link.

Here's the reference for showing a Types image field:
https://toolset.com/documentation/customizing-sites-using-php/functions/#image