Skip Navigation

[Resolved] Best design options

This support ticket is created 4 years, 7 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 1 reply, has 2 voices.

Last updated by Jamal 4 years, 7 months ago.

Assisted by: Jamal.

Author
Posts
#1622071
Profile Layout.png

Tell us what you are trying to do? Create profiles site where users can choose options to include in their profiles (eg Sports, Hobbies, Jobs, etc) and then only these chosen options will be shown on their profile site within tabs which will be conditional if they were selected. See image

Is there any documentation that you are following? No

Is there a similar example that we can see? No

What is the link to your site? hidden link

#1623015

Hello and thank you for contacting the Toolset support.

I can't really explain the details before knowing which editor you will be using, the block editor, or the classic editor?

But, I'll give it a try and give some ideas on how to implement it from what I understand so far and how I would implement it:
- Create 5 custom post types: Profile, Job, Sport, Hobby, Child. The user will be the author of his own posts.
- Create a "Profile View", will display Profiles filtered by author, the current user to display the profile for his owner, or from parent post where this view is shown if we want to display on a Profile single page (/profile/jamal-toolset).
- Create "Jobs View", "Sports View", "Hobbies View", and "Child View", which will display, each, Jobs, Sports, Hobbies, Child, filtered by the author of the post where this view is shown.
- Use these views inside "Profile View".

Now we can display all the posts without tabs. For tabs, this will depend on what editor we are using. I do not know a solution for tabs right now on blocks, maybe using a 3rd party plugin. I still do not know. We'll figure it out if you are using the block editor. Otherwise, the workaround is to create a view with the classic editor and use it inside the block editor.

If you are using the classic editor and generating Bootstrap tabs, you will need to have a way to count the posts for tab panels and display the tab title if there are any posts. You can adapt the following function to your needs, it currently counts a custom post type for the current user: hidden link
Then register the function to be used in Toolset conditions in Toolset->Settings->Front-end Content->Functions inside conditional evaluations. Check this article https://toolset.com/documentation/user-guides/views/conditional-html-output-in-views/using-custom-functions-in-conditions/

I hope this helps. Let me know more details about your use case and what editor you are using, or allow me temporary access to check it closely. Your next reply will be private to let you share credentials safely. ** Make a database backup before sharing credentials. **