Skip Navigation

[Resolved] I don't understand

This support ticket is created 3 years, 11 months ago. 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.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9:00 – 13:00
14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 - - 14:00 – 18:00

Supporter timezone: Africa/Casablanca (GMT+01:00)

This topic contains 2 replies, has 2 voices.

Last updated by Jamal 3 years, 11 months ago.

Assisted by: Jamal.

Author
Posts
#1945991

Hello!

Iam working hard with my real estate site, and now when I finished my work I was wondering and Iam really sad!

I wanna build real estate site where the agents can register and upload their properties. Now Iam wondering, if anybody register to my site is never will be an AGENT. I can't find relationship the registered USERS and betveen the AGENTS. Is really strange I think, and now I don't know why am I working more than a week... Is out of my logic, and Iam really angry about it. The Agents can't register to my site, but anybody can do. Where is the logic? Who is the agent?

Of cousre I know who is the agent, but I think is really not clear! Really don't understand where is the logic? In your demo site all of the properties have an Agent, but the AGENET never upload any properties... because it doesn't have chance. I think if you see only the logic and what you see on the demo site, you can see, Iam right.

How can I connect the user registration datas with Agents? How can I make Agents custom post type from the registered users?

Iam going crazy really... and please give me some solution, because I need to finish my job, but now Iam really confused.

Thank you!

#1946219

I think the solution:

After the user registration created, the next step is not redirect to the Thank you page, rather the next step is the user need to fill out the Agent form. And only after that, let the user add a new properties. If is works (why not?) how can I connect the property fileds with the agent in the fronend form and hidden (the agent owner no need to know how can I conect the fileds.)?

How can I store the agent relatioship imediatelly and anytime when the user hit the submit button to add a new properties?
Sorry my english is bad... and I just hope You understand my solution...

#1947039

Hello and thank you for contacting the Toolset support.

I believe this article will help you understand the relation between users and posts and how you can implement it https://toolset.com/documentation/legacy-features/views-plugin/how-to-create-custom-searches-and-relationships-for-users/

You are right, when a user(that should be an agent) registers, you need to redirect him to a form where he completes his Agent post(where he is the author). Then to let him create properties that are related to his agent profile, you need to create a relationship between properties and agents, and then a form for the property, then you need to automatically preselect the parent agent in the property form. Does it make sense?
This article may help you get to that https://toolset.com/course-lesson/selecting-parent-posts-when-using-forms-to-create-child-items/#creating-forms-when-a-parent-post-is-preselected

I hope this helps. Let me know if you have any questions.