Home Forums General Issues A little help sorting a query


A little help sorting a query

  • I am trying to sort the returned results of a post list item. Any thoughts, cause this is not working at all.

    //If it’s Edit screen – set radio choice accordingly
    function my_acf_load_value( $value, $post_id, $field ) {
    $order = array();
    if ( isset($_GET[‘edit_artist’])) $value = ‘edit’;
    array_sort( $order, SORT_ASC, $value );
    return $value;

Viewing 1 post (of 1 total)

The topic ‘A little help sorting a query’ is closed to new replies.