Skip Navigation

[Resolved] Sort post by context

This support ticket is created 6 years, 1 month 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 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 2 replies, has 2 voices.

Last updated by deanL 6 years, 1 month ago.

Assisted by: Shane.

Author
Posts
#1157704

I taught myself coding, I understand most of the coding logics, but this one really got me. I hope you can help shed some light as I'm getting desperate!

I'm working on a staff directory.

Current situation:
Staffs are grouped under categories.
Some staffs appear in more than one category.

The challenge:
Staffs are order according to their ranking under a given category.
However, several staffs may be in different order under different category.

For example:

Under Dept A, we have...
Adele
Betty
Charlie

Under Dept B, we have...
Charlie
Dawn
Betty

Notice how Betty and Charlie has swapped position under different department?

Using Toolset Views, how do I achieve the above?

#1157908

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Dean,

Thank you for contacting our support forum.

If you are using views, the issue would be that the sorting would be the same For Dept A results and Dept B results.

So if the items under Dept A are sorted by post title then under Dept B the sort will be the same.

Please let me know if you understand what I mean or if further explanation is needed.

Looking forward to hearing from you soon.

Thanks,
Shane

#1157911

My issue is resolved now. Thank you!