Can I create view inside a view?

By: Adam Faith | Asked: 01/02/2023
ForumsCategory: How-toCan I create view inside a view?
Adam Faith asked 1 year ago
I am making a student home rental website, where students and landlords can have accounts. Students can create a 'housing group' by submitting multiple entries to a 'add new housemate' form, which includes lots of application information. The student account sees a view which shows all these entries which is called 'my housemates'.  The landlords can also make an account and add their housing listings. Then, students can easily apply for these listings, simply by pressing apply and allowing the landlords to view their pre-submitted housing group info. The one problem is, I can't figure out a way to make a view (for landlords) that displays groups of entries. In other words, I want a view that shows a simplified version of the 'my housemates' view, but every row is a new housing group. Is this possible? I would really appreciate any tips. 
2 Answers
Victor Font answered 1 year ago
You can nest a view with a view. See this:
Adam Faith replied 1 year ago

Thank you so much!

Bobby Clapp answered 1 year ago
What makes the "housing group" unique and separates one group from another and keeps them distinct between groups?
Adam Faith replied 1 year ago

My understanding is that each housing group will be created by a different user, so the user ID will keep them distinct.

Bobby Clapp replied 1 year ago

Long story short... it's doable. I think we would need to see a more detailed project requirements listing to offer input on how to accomplish what is being requested.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community