Hi,
Please use this PHP snippet:
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
);