In my listing website, vendors, customers and affiliates have profiles. Vendor listing shows product offerrings, customers shows user profile, and affiliates also shows user profile and all 3 have have respective categories.
I want to create a system where each listing, customer profile, and affiliate profile will have a unique numeric ID — for example:
Listing A = ID 000001
Listing B = ID 000002
Customer or Affiliate = ID 000003, and so on.
These IDs will help keep everything organized and easy to track in the listing theme — including vendor services, customer accounts, and affiliate accounts.
Yes, both vendors and listings are stored in wp_posts table and each entry has a numeric ID. Depending on how you output this ID, you can add a letter before the number if needed. If you’re familiar with code customizations, please try using this sample code snippet as a starting point Unique number or ID - #8 by yevhen