Hello everyone,
I'm using wp-types for a directory. Each user can have multiple companies that he can edit. Each companies can also have multiple products.
I was able load up the companies belonging to a user and allow the user to edit their data. Good stuff.
However, I'd now like to allow the user to create products and assign them to his companies. I am able to create the new product form but when I include the parent company field it gets populated with all the companies in the directory instead of only the user's own.
How can I accomplish this please?