Problem: I have a View that shows results from two post types. I would like to show the results in two different columns, organized by post type.
Solution: Since there is no post type filter in Views, the best solution is to use two separate Views.
- View 1 will show Houses, and View 2 will show Apartments.
- The two Views should use exactly the same filters, including the same URL parameters. The easiest way to make sure is to create View 1 first, get it working right, then Duplicate View 1, change the post type, and save it as View 2.
- In the Loop Output editor, build the list of results in a single column.
- Insert View 1 showing both the filters and results, and insert View 2 after that, showing only results.
- Use CSS to move the two Views into columns.
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 |
---|---|---|---|---|---|---|
8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | - | - |
13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | - | - |
Supporter timezone: America/New_York (GMT-04:00)
This topic contains 2 replies, has 2 voices.
Last updated by 6 years, 9 months ago.
Assisted by: Christian Cox.