On hidden link
I have this shortcode:
{!{wpv-view name='show-members' cat='museums' orderby="wpcf-museum-order" order="desc"}!}
I want to sort the results based on the custom field: wpcf-museum-order.
It is not working. Am I doing something wrong?
Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
Hi Lee,
Thank you for getting in touch.
Would you mind allowing me to have access to the site to check the view query to see if the sorting parameter is being passed?
The private fields have been enabled for your next response.
Thanks,
Shane
Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
Hi Lee,
Thank you for the credentials.
What I would like for you to do is to update our views plugin to the latest version as well as to temporarily disable all the non-toolset plugins to see if the issue still remains.
You have quite a number of plugins installed, any of which could be causing an issue with the sort order of the view.
Thank,
Shane
FYI - That wasn't it.
I found the answer on https://toolset.com/documentation/user-guides/views/views-shortcodes/#wpv-view
'field-xxx'
This works:
{!{wpv-view name='show-members' cat='museums' orderby="field-wpcf-museum-order" order="asc"}!}
Thanks for your help.
My issue is resolved now. Thank you!