Skip Navigation

[Résolu] realestate site – i want user to have a password to see only their projects

This support ticket is created Il y a 7 années et 3 mois. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Auteur
Publications
#470767

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

#470773

yes! that was (almost) it 🙂
just needed to make both post types "property" and "client" parents of "contracts".
good thing it was weekend 🙂
hope this helpes anyone later.
ido

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.