Support

Account

Home Forums General Issues need to select first item in meta_value array to sortby Reply To: need to select first item in meta_value array to sortby

  • I’m doing a terrible job of explaining. I’m having no problems with viewing the data in the arrays and realize it’s an array and been pouring over google.

    But how do I in my original code tell the ‘orderby’ to literally order the meta_value by like ‘$arr[0]’? Or is this not even possible? Currently the ‘orderby’ will not work because it’s an array, so want it to look at just the first value in the array to ‘orderby’.

    Really appreciate your help, hopefully I made a little more sense this time.