I found a bug in HivePress.
I added an ad without first creating a category. Then I created different categories. Then it turned out that editing existing ads was no possible. While editing, the form reported the need to choice a category, but such a field was not displayed anywhere.
The problem does not occur only in the cockpit and that is the only place where the problem could be circumvented.
I see that someone has already reported this bug, but it still hasn’t been fixed.
https://community.hivepress.io/t/why-cant-i-save-a-listing-without-a-category/16392
Hi,
Thanks for reporting this! We’re already aware of this bug and are working on fixing it.
As a temporary fix, please use this code snippet to make the category field not required: How to add custom code snippets - HivePress Help Center
add_filter(
'hivepress/v1/models/listing',
function ( $model ) {
$model['fields']['categories']['required'] = false;
return $model;
},
1000
);
Hope this helps
