Show location only for specific categories


I only want to have the location feature available for specific categories

For example when someone submits a listing for category A the location field is visible and required.

When he submits a listing and chooses category B, the location field is completely gone.

How can I achieve it?

Thank you.

Please try using this code snippet Restrict the location field to specific listing categories #hivepress #geolocation ยท GitHub

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