Im currently using this function to replace the Vendor Image with the Listing Image
add_filter(
'hivepress/v1/templates/listing_view_block/blocks',
function( $blocks, $template ) {
return hivepress()->helper->merge_trees(
[ 'blocks' => $blocks ],
[
'blocks' => [
'listing_image' => [
'path' => 'listing/view/block/listing-image',
],
],
]
)['blocks'];
},
1000,
2
);
However, I am wondering if it is possible to use a listing attribute with type = attachment, such as field name = ‘logo’ and use the listing image as a fallback? Is this sort of function possible and would it require significant work to accomplish?