Hello everyone,
I have a question regarding HivePress and TaskHive. I’ve created categories for my freelancers (vendors) and separate categories for services (listing categories).
How can I make sure that a freelancer can only post listings in the category they belong to?
For example, there are three categories for both freelancers and services (IT, Digital Marketing, Creativity). I want freelancers in the IT category to be able to offer services only in IT, and never in Digital Marketing or Creativity.
You can achieve this by using a custom code snippet that restricts the available listing categories based on the vendor (freelancer) category. Here’s a solution provided by the HivePress dev, Ihor, in another topic:
Add the following code snippet to your child theme’s functions.php file or use a plugin like Code Snippets:
In WordPress Dashboard, navigate to the edit screen of the vendor/listing category you want to identify, then look at the number portion that’s displayed in the URL. That’s the ID you’re looking for!