Hi,
I'm created two CPT, one for consultants and one for company. They're having a one-to-many relationship - one company - many consultants.
Now I want to create a view showing all companies. When clicking on a company, I want to open a page with only the consultants of this company. I've read through many solutions on your site, but somehow I cannot find the right one.
Do you have a hint for me?
Best regards
Alex
Hi,
Thank you for contacting us and I'd be happy to assist.
You can achieve this using two separate views:
1. The first view will show all "company" posts and you can place it on the page where you'd like to list all the companies.
( ref: https://toolset.com/lesson-placement/lesson-placements-1621261-1622283/ )
On clicking the link title of the individual "company", the user will be taken to its single "company" post page.
2. On the single "company" post page, you can show another view, that shows all the "consultant" posts, related to the current "company" post.
Here is a guide on showing the related posts, using a view:
https://toolset.com/lesson-placement/lesson-placements-1729031-1730449/
I hope this helps and please let me know if you need any further assistance around this.
regards,
Waqar