Saltar navegación

[Resuelto] Would like to sort by most taxonomies found as a related view

This support ticket is created hace 5 años, 5 meses. 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)

Etiquetado: 

Este tema contiene 1 respuesta, tiene 2 mensajes.

Última actualización por Shane hace 5 años, 5 meses.

Asistido por: Shane.

Autor
Mensajes
#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

Idiomas: Inglés (English )

Zona horaria: 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