I’m not entirely sure I understand your question, but this should help — The post_author is the vendor ID. So, query the products post_author and that’s the vendor user_id.
Cheers
Ben
Thread Starter
Rnaby
(@rnaby)
Well, let me clear my question. Say, I’ve three vendors vendor1, vendor2 and vendor3. And the subdomain for vendor1 is yourdomain.com/branch1. Similarly the other two branches are gonna be yourdomain.com/branch1 (for vendor2) and yourdomain.com/branch3 (For vendor3).
For branch1 I need to get the vendor1 ID dynamically. How should I do that ?
It is kinda getting author id I guess.
Thanks Again.
I have no idea. Your application doesnt give me anything to go on. But the vendor ID is simply their user_id. So however you wish to get that, is all up to you.
Thread Starter
Rnaby
(@rnaby)
Thanks for your replay.
Tell me one last thing, how can I get the vendor id from url ?