Tell us what you are trying to do?I want to create a loop that has all universities and under each university it's related programes somthing like this
Uni1
it's realtaed program 1
it's realtaed program 2
it's realtaed program 3
Uni2
it's realtaed program 1
it's realtaed program 2
it's realtaed program 3
and so on and the user should be able to search for programes by degree and faculty based on that the programes should be displayed
NOTE: I only need 3 Meta fields out of the Uni posts (Logo(Not futured IMAG), and 2 other meta field which i already created using ACF the programes should have button inside which if the user press on it will lead to another page that will be handled usnig javescript so the button is important for each programe)
Is there any documentation that you are following?NO
Is there a similar example that we can see?Yes it is this webpage here
hidden link
What is the link to your site?
hidden link
Hi there,
You will need nested views for that and that can be added using the legacy views.
- Go to "Toolset > Settings > General".
- Find the "Editing experience" section.
- Check the "Show both the legacy and Blocks interface and let me choose which to use for each item I build" checkbox.
- Reload the browser page.
- Go to the newly added "Toolset > Views" menu.
- There you will be able to edit the views.
For more information:
https://toolset.com/course-lesson/enabling-legacy-version-of-toolset-views/
Now that you have enabled the legacy views, you can learn more about how to create search results here:
https://toolset.com/documentation/legacy-features/views-plugin/
And here is specific documentation on nested views that you can use to achieve the list you have mentioned:
https://toolset.com/documentation/legacy-features/views-plugin/using-a-child-view-in-a-taxonomy-view-layout/
Here is an example:
1) Parent post view:
- Query Uni posts
- Filter by:
Select top-level posts with no parent. Screenshot: https://toolset.com/wp-content/uploads/2020/10/1829379-top_level.jpg
- In view's loop, display the post link + below child post view
2) Child post view
- Query programs posts
- Filter by:
Select posts whose parent is the current post in the loop.
- In view's loop, display post link
Thanks.