Hi there, I’m using the ListingHive theme and I used the following code snippet from this forum (Allow selecting multiple categories) to allow for multiple categories that a vendor can select when doing Add Listing.
Now, I’m wondering if there is a way to limit the number of categories that a vendor can select, in my case, max 3 categories. Thank you in advance for assisting.
Unfortunately, there’s no such feature, it would require a custom implementation.
If customizations are required for your site, please try customizing it using the collection of code snippets Search · user:hivepress · GitHub and other developer resources, or consider hiring someone for custom work https://fvrr.co/32e7LvY
Select Multiple Categories + Max 3 Categories + Placeholder on LISTING SUBMIT form: (replace ‘listing_submit’ with ‘listing_update’ to have the same thing for the editing form.