Skip Navigation

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

This thread is resolved. Here is a description of the problem and solution.

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 4 years, 2 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 2 replies, has 2 voices.

Last updated by liatG 4 years, 2 months ago.

Assisted by: Luo Yang.

Author
Posts
#1764761

hidden link (Private - will be visible to admins)
I’m using a view filter by shortcode attribute “ids.”
hidden link
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!