Ordering on a custom field
-
I would like to order the gallery using a custom field, but I cannot find the right format to do so. Currently, my code is:
do_shortcode(sprintf('[mla_gallery s="%s" tax_query="%s" my_filter="term gallery" paged=current meta_key="pic_ref" orderby="meta_value" order="DESC"]', $wp_query->query_vars['s'], $my_tax_query));
but it doesn’t work.In fact, this doesn’t show any result since I added the
meta_key="pic_ref" orderby="meta_value" order="DESC"
bit.Could you help to find the right syntax?
Thanks a lot.https://www.ads-software.com/plugins/media-library-assistant/
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Ordering on a custom field’ is closed to new replies.