The number of reviews displayed

Is there a way to display reviews in a 'slide form . . . the listing page looks boring as the number of reviews added increased

In the current Reviews version this would require customizations, but we plan to add pagination, infinite scroll or a separate tab for reviews in future updates.

i tried this code (to limit number of displayed reviews ) but not working . . . can you help? 

add_filter( 
	'hivepress/v1/templates/listing_view_page', 
	function($template){
		return hivepress()->helper->merge_trees(
			$template,
			[
				'blocks'     => [
					'reviews' => [
						'number' => 3,
					],
				],
			]
		);
	},
	1000
);

Yes, it will most likely not work because when the Reviews block is in the “listing” context it will display all the listing reviews, the number restriction works only if this block is added to another page, e.g. Home.

Any news about reviews pagination feature?

Sorry, it’s not available yet but it’ll be added to the next update (or another option to hide and expand reviews).

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.