Skip Navigation

[Resolved] Taxonomy Images (displaying image without linking to a taxonomy page)

This support ticket is created 6 years, 12 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 6 years, 12 months ago.

Assisted by: Luo Yang.

Author
Posts
#592568

Tell us what you are trying to do?

I would like to display taxonomy images in my view, without them linking through to a taxonomy page. I have downloaded the Taxonomy Images plugin.

I have added the following code to my functions file:

add_shortcode('wpv-post-taxonomy-image', 'taximage');
function taximage($atts) {
return apply_filters( 'taxonomy-images-list-the-terms','', array('image_size' => 'my-thumb','taxonomy' => 'employer', 'post_id' => get_the_ID() ) ) ;
}

and have used the following in my view:

[wpv-post-taxonomy-image]

The employer logo images are appearing but they also link through to an archive page. I would like the images to appear only.

Is there a similar example that we can see?

hidden link please scroll to the job list. The taxonomy images are the employer logos.

What is the link to your site?

#592684

Dear Adam,

I assume you are using another plugin "Taxonomy Images",
https://wordpress.org/plugins/taxonomy-images/
and the custom PHP codes from this thread:
https://toolset.com/forums/topic/how-to-display-images-of-a-taxonomy/
It is outdated, and out the range of Toolset support.

And Types plugin does support custom taxonomy field, you can create the custom image term field within Types, and display it with Types shortcode [types ...], see our document:
Adding Term Fields to Taxonomies
https://toolset.com/documentation/user-guides/term-fields/
Displaying Term Fields on Front-end
https://toolset.com/documentation/user-guides/displaying-wordpress-term-fields/