May 5, 2016 at 12:14 pm
#8582
Ernest Marcinko
Keymaster
Hi!
I have found a previous ticket where a similar issue was solved, and he also used the Featured Categories for images plugin.
Try to put this code into the functions.php file in your active theme directory:
[php]
add_filter(‘asp_results’, ‘asp_get_fifc_term_image’);
function asp_get_fifc_term_image($results) {
foreach($results as $k => $result) {
if ($result->content_type != ‘term’) continue;
$thumb_id = get_option( ‘_wpfifc_taxonomy_term_’.$result->id.’_thumbnail_id_’ );
if ($thumb_id !== false) {
$image = wp_get_attachment_url( $thumb_id );
if (!empty($image))
$results[$k]->image = $image;
}
}
return $results;
}
[/php]
I have tried to log-in via FTP to test this, but it could not connect to the provided server. Let’s hope this works.