Here’s a snippet that displays categories on listing primary cards by @andrii
add_filter(
'hivepress/v1/templates/listing_view_block/blocks',
function( $blocks, $template ) {
return hivepress()->helper->merge_trees(
[ 'blocks' => $blocks ],
[
'blocks' => [
'listing_content' => [
'blocks' => [
'listing_category' => [
'type' => 'part',
'path' => 'listing/view/listing-categories',
'_order' => 5,
],
],
],
'listing_details_primary' => [
'blocks' => [
'listing_category' => [
'type' => 'content',
],
],
],
],
]
)['blocks'];
},
1000,
2
);
This plugin places the category tag within the listing description.
How can we move it to be displayed for an example on the top right of the listing image or over the separator at the middle of the card (between image and description)