Skip Navigation

[Resolved] Need help making image clickable

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

Problem:

I am experiencing an error when trying to save a content template in Toolset, despite not making any changes. The error appears randomly and persists even after duplicating the template.

Solution:

The issue was traced back to a custom code snippet added in Toolset's settings, which caused a fatal error during the save process. By modifying the custom code to apply only when viewing specific post types , the issue was resolved, and the template can now be saved without errors.

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.

This topic contains 25 replies, has 5 voices.

Last updated by Nigel 3 months ago.

Assisted by: Christopher Amirian.

Author
Posts
#2711576
Schermafbeelding 2024-08-06 131825.png

On artists pages, i also show other art pieces of them, but i can't seem to find a way to make these images clickable. it's underneath the line: Werken van deze Kunstenaar in this template: hidden link I Tried several things, but somehow i can't find it.

This is probable the last issue before we go live 🙂

#2711586

Christopher Amirian
Supporter

Languages: English (English )

Hi there,

I will answer this question before one of my colleagues is assigned to this ticket.

We could not access the website as it needs a password.

You can usually use the Toolset image block to add links to the inner pages with no issues:

https://toolset.com/block-item/image/

#2711587

Hi Christopher,

I know, Minesh has the login credentials, he helped me an hour ago. I know about the image block but in this view it's not working as it usually does

#2711625

The image has to be linked to the author of the post, where the image is showing

#2711626

Sorry, i mean the image link has to direct to the page of that artwork, but i'm not able to do that in this view

#2711705

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello there,

I'm afraid that once the ticket has been marked as resolved, the access data has been removed for security reasons.

I tested the following code in my test site and it seems to achieve what you want, please take a look:

<a href="/author/{!{wpv-post-author}!}">[types field='image-field'][/types]</a>

You can enter the image field name and test it.

Best,
Mateus

#2712978

Please send this ticket to minesh, thank you!

#2713357

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

With the image block there is a link settings available.

So with your content template:
- hidden link

I've set the image block link settings as you can see with the following screenshot:
- hidden link

Can you please confirm it works as expected.

#2713377
Schermafbeelding 2024-08-09 130255.png

Hi, Thank you, no that's not what i ment. Sorry, i made a mistake earlier. I mean the pictures in the view below the text: Werken van deze Kunstenaar. These pictures need to link to the referring artwork page

#2713403

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Can you please share problem URL of that page?

#2713424

hidden link

#2713425

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

On what page on frontend I can see the same images as per your screenshot you shared:
- https://toolset.com/wp-content/uploads/2024/08/2713377-Schermafbeelding_2024_08_09_130255.png

Can you please send me frontend URL of above screenshot?

#2713427

hidden link

#2713436

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Can you please check now: hidden link

I've changed the shortcode you added as given under with "Fields and Text" block you added:

<p><a href="[wpv-post-url]">[types field='kunstwerk-hoofdafbeelding' title='%%TITLE%%' alt='%%ALT%%'size='medium' resize='crop'][/types]</a></p>
#2713943
Schermafbeelding 2024-08-10 100811.png

Ah thanks! But now, when i save the template i'm getting this error: Updating failed