I would like to see only the 5 most recent reviews. How do I set this up?
https://careedot.shop/listing/%e8%bb%a2%e8%81%b7%e7%9b%b8%e8%ab%87%ef%bc%88%e3%82%ad%e3%83%a3%e3%83%aa%e3%82%a2%e6%a3%9a%e5%8d%b8%e3%82%b3%e3%83%b3%e3%82%b5%e3%83%ab%ef%bc%89/#reviews
Currently, all reviews are displayed like this.
yevhen
2
Please try this PHP snippet
add_filter(
'hivepress/v1/templates/listing_view_page',
function($template){
return hivepress()->helper->merge_trees(
$template,
[
'blocks' => [
'reviews' => [
'number' => 5,
],
],
]
);
},
1000
);
We have confirmed the contents.
Thank you very much for your prompt response.
I will try to respond here!
system
Closed
4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.