No Image Gallery on Edit Page

On the Edit page for a Listing only a single image is appearing where six have been added. The user has no way to know what images have been added or deleted without looking at the Details page for the Listing.

In addition, the number of images that can be added to a Listing appears to be unlimited even though the following code has been added to the function.php file through Code Snippets:

add_filter(
	'hivepress/v1/forms/listing_update',
	function( $model ) {
		$model['fields']['images']['max_files'] = 6;
		$model['fields']['images']['multiple'] = false;

		return $model;
	},
	100
);

Hi,

Please disable third-party plugins and customizations (if there are any) and check if this issue persists. If you use a caching plugin, make sure that caching is disabled for logged-in users.

Please use this PHP snippet - Change the maximum number of images per listing #hivepress #listings · GitHub
And please add snippet using this doc How to add custom code snippets - HivePress Help Center

​I hope this is helpful to you.

I replaced the code snippet with the recommended code and it now works.

I do not have a caching plugin installed yet.

I deactivated all of the non-HivePress plugins and the gallery appeared.

I re-activated all of the plugins one-by-one and the gallery remained.

So it all works now. But the exact same plugins are enabled as when it didn’t work.

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