Saltar navegación

[Resuelto] How to make view items appear in the order specified by the shortcode

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

Problem:

I would like the posts to show up in the order specified in the shortcode.

Solution:

It needs custom codes, for example, see the solution of similar thread:

https://toolset.com/forums/topic/view-orderby-original-order-of-arguments-in-shortcode-parameter/#post-1120499

Relevant Documentation:

https://developer.wordpress.org/reference/classes/wp_query/#order-orderby-parameters

https://toolset.com/documentation/programmer-reference/views-filters/#wpv_filter_query

This support ticket is created hace 4 años, 8 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 – 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)

Etiquetado: ,

Este tema contiene 2 respuestas, tiene 2 mensajes.

Última actualización por liatG hace 4 años, 8 meses.

Asistido por: Luo Yang.

Autor
Mensajes
#1764761

enlace oculto (Private - will be visible to admins)
I’m using a view filter by shortcode attribute “ids.”
enlace oculto
Example [wpv-view id="204098" ids="182218, 205244, 201310"]
I would like the posts to show up in the order specified in the shortcode. Is there any way to do this?
Thank you!

#1764877
#1765395

My issue is resolved now. Thank you!