Skip Navigation

[Resolved] Sorting a view alphabetically and vertically.

This support ticket is created 2 years, 3 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 1 reply, has 2 voices.

Last updated by Luo Yang 2 years, 3 months ago.

Assisted by: Luo Yang.

Author
Posts
#2474693

Hello

Im trying to sort a view vertically and alphabetically by columns.
The output is just a single field 'wpv-post-link' text.

So:
Column one = item 1 2 3 4 5 (stacked vertically)
Column two = item 6 7 8 9 10 (stacked vertically)
and so on...

In total there will be 4 columns and the length of the column is defined by the view input count. so not limited to 5 per column.

Thanks!

#2475105

Hello,

There isn't such kind of built-in feature within Toolset plugins, you might consider custom codes, for example:
Create a custom shortcode:
1) Get Views result with function get_view_query_results()
https://toolset.com/documentation/programmer-reference/views-api/#get_view_query_results

2) Then customize the results to what you want

More help:
https://developer.wordpress.org/reference/functions/add_shortcode/