hi,
i'm trying to build a realestate site.
i will display different properties.
users who have invested in properties will have a password which, once logged in, can take them to a page with the properties they've invested in and see new developements. they won't see on this page any other properties.
so far, i created a post type "properties" and a view to show them. i also created a new user role and assigned each user to a different property as "author", which allows me to show the view of a user's "authored" properties in his "my account" page, with this code in the page:
[wpv-conditional if="( '[wpv-current-user info='logged_in']' eq 'true' )"]
[wpv-view name="users-properties"]
[/wpv-conditional]
only problem is, i can assign only 1 user as author of a properties, but i have many clients who have invested in one property (or more).
my gut feeling tells me i need to create 3 post types:
1. client
2. property
3. an intermediate between them, to enable "many to many" relationship, something like "contract". "contract" will be child of "client" and parent of "property".
then i need to:
a) assign a user as author of a client
b) assign properties to clients via contracts
c) create a client view in "my account" page to show all properties connected to it
am i right? just need to make sure before i go through this confusing maze...
maybe there's an easier option i'm missing?
thanks!!!
ido