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?
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/