Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Taxonomy image on Search result › Reply To: Taxonomy image on Search result
February 14, 2023 at 1:53 pm
#41356
Keymaster
Hi,
Okay, that might be possible to do via the theme functions. Generally wordpress does not support taxonomy terms on the results page, neither the images.
Within the theme results loop, try something like this to fetch the image:
<img src="<?php the_asp_result_field('image', true); ?>" />
You may need to check for the image existence, so something like:
<?php if ( !empty(get_asp_result_field('image') ): ?>
<img src="<?php the_asp_result_field('image', true); ?>" />
<?php endif; ?>