Hi,
I hope you all are doing well.
I am trying to use this piece of code in a module that retrun filtered k2 items
<?php
//Create placeholder items images
$src = $item->image;
if (!empty( $src)) {
$thumb_img = '<img src="'.$src.'" alt="'.$item->title.'" />';
} else if ($is_placehold) {
$thumb_img = yt_placehold($placehold_size['listing'],$item->title,$item->title);
}
echo $thumb_img;
?>
But it is not rendering any thing, the items has no image so the if statment shouold go to the placeholder part of the code, but seems not working, I doubt the function for the place holder is no called, what should I do?
Thank you all.