Skip Navigation

[Resolved] How to Create Custom Searches and Relationships for Users in WordPress

This thread is resolved. Here is a description of the problem and solution.

Problem:

I am trying to create a membership-based site for alumni where members can register and display their profiles. I have set up custom fields for "Contractor" (simple profile) and "Showcase" (detailed profile) but the showcase list is not displayed properly in the contractor template.

Solution:

Use the Toolset relationship feature to create a connection between the Contractor and Showcase post types. Then, display the related posts using a content template following the steps provided in the Toolset documentation.

Relevant Documentation:

https://toolset.com/course-lesson/how-to-set-up-post-relationships-in-wordpress/

https://toolset.com/course-lesson/displaying-related-posts/

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.

Our next available supporter will start replying to tickets in about 2.24 hours from now. Thank you for your understanding.

This topic contains 3 replies, has 2 voices.

Last updated by Christopher Amirian 3 months, 1 week ago.

Assisted by: Christopher Amirian.

Author
Posts
#2722474
showkese-1.jpg
contractor-1.jpg

Tell us what you are trying to do?
Here's what I'm learning.
"How to Create Custom Searches and Relationships for Users in WordPress"

I built an environment on my test site that follows the operation manual above, but it works well, so please help me.
Points that don't work
1. The showcase list is not displayed in the contractor template.
Each is as follows
Contractor template & showcase Attach an image with each template condition set.
Is there any documentation that you are following?

#2722752

Christopher Amirian
Supporter

Languages: English (English )

Hi there,

I am not sure if I understand your use-case. Please give me more context on what you want to do.

I see that you use the documentation below:

https://toolset.com/course-lesson/how-to-create-custom-searches-and-relationships-for-users/

But I am not sure what you do and what are the post types users and the goal you want to achieve to be able to help.

Also I am not sure if I understand you by saying "The showcase list is not displayed in the contractor template."

What is a showcase and what is a contractor? Give me info in WordPress terms such as custom post and ....

Thanks.

#2722799
admin-4.jpg
admin-3.jpg
admin-2.jpg
admin-1.jpg

Dear Christopher Amirian,

Thank you very much for contacting me.

Here's what I want to accomplish.
1. I am creating a website organized by alumni of the Tohoku University Judo Club.
2. The site is a membership-based site, and the members are alumni.
3. Only members who wish to register can become members.
3. I would like to enable business exchanges to take place between registered members.
4. Therefore, I am allowing members to obtain accounts.
5. I am allowing members who have obtained accounts to register their own simple profiles.
6. I am allowing them to register more detailed profiles.
7. I have set the simple profile in a custom field called Contractor.
8. I have set the detailed profile in a custom field called showcase.
9. I would like to display Contractor and Showcase in a manner similar to the image in the Toolset operation manual.
10. The information I have set is as shown in the attached file, but it is not displayed properly.
11. I would like to display registered member information so that business exchanges can take place on this membership-based site.

The information to be added is as follows.
URL: hidden link
The settings on the management screen are as shown in the attachment.

Regards,
Yoshihiko

#2724496

Christopher Amirian
Supporter

Languages: English (English )

Hi there,

Thank you for the information. As you already finished the setting up and you just need to add the showcases inside the contractor post type I suggest that you use the Toolset relationship feature for Contractor and Showcases.

It is different than the first registration and contractor creation forms that you already implemented it seems.

Use this to create the relationship:

https://toolset.com/course-lesson/how-to-set-up-post-relationships-in-wordpress/

And use this to show the related post inside a content template like you want:

https://toolset.com/course-lesson/displaying-related-posts/

Thanks.