Skip Navigation

[Resolved] Order or combine all results of multiple nested Views together

This thread is resolved. Here is a description of the problem and solution.

Problem:

Is it possible to order or combine all the results found of multiple nested Views?

Solution:

That is not possible within Views plugin, see details here:

https://toolset.com/forums/topic/order-or-combine-all-results-of-multiple-nested-views-together/#post-1212905

Relevant Documentation:

This support ticket is created 5 years, 11 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: Asia/Hong_Kong (GMT+08:00)

This topic contains 3 replies, has 2 voices.

Last updated by Ben 5 years, 11 months ago.

Assisted by: Luo Yang.

Author
Posts
#1212775

Ben

Is it possible to order or combine all the results found of multiple nested Views?

For example, imagine I have two Views (View 1 and View 2) that return their own results. These two Views are inserted into another View (View 3). By default I believe that View 3 will display the results of View 1 and View 2 in whatever order they are inserted into View 3. Is there a way to "combine" all the results? Or be able to filter results across both Views?

I hope this makes some sort of sense!

#1212905

Hello,

That is not possible within Views plugin,since Views plugin is using WP_Query to query posts data, each view will trigger the WP_Query independently, so each view's query will be sorted differently.
https://codex.wordpress.org/Class_Reference/WP_Query

You can add a feature request for it:
https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/

You might consider custom codes, you can check our Toolset Contractors for it:
https://toolset.com/contractors/

#1213224

Ben

Thank you Luo Yang.

I have added a feature request as I believe this would be really useful as you currently cannot have more than one post relationship query or filter within a View.

#1213232

Ben

Forgot to mark the issue as resolved.