Skip Navigation

[Gelöst] Would like to sort by most taxonomies found as a related view

This support ticket is created vor 5 Jahren, 3 Monaten. 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.

Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.

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)

Dieses Thema enthält 1 Antwort, hat 2 Stimmen.

Zuletzt aktualisiert von Shane vor 5 Jahren, 3 Monaten.

Assistiert von: Shane.

Author
Artikel
#1330835
screen shot.png

We are planning to have a selection of multiple taxonomies and would like to see if there is any way to display a view of related posts by the most taxonomies found, instead of the post date, or options a view has?

#1330919

Shane
Supporter

Sprachen: Englisch (English )

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

Hi James,

Thank you for getting in touch.

Unfortunately this isn't possible unless you use some form of custom code. The view can only be sorted by the available parameters in the sort criteria.

A complete custom solution would be needed in order to do this, which would be out of the scope of our support forum.

It would most likely involve getting the count of the taxonomy for each post and storing that in an array with the post ID and then sort that array and retrieve the posts based on that array.

Thanks,
Shane