Forum Replies Created

Viewing 1 replies (of 1 total)
  • I Can to help… see please, can to add :

    /*ascending or desc order*/

    if (isset($_POST[‘update_RD_Document_Links’])){
    if(($_POST[‘order’])==’ascending’){
    $listOrderOptions[‘display_order’] = “ascending”;
    $this->sortOrder = ‘ASC LIMIT 5’;
    }else{
    $listOrderOptions[‘display_order’] = “descending”;
    $this->sortOrder = ‘DESC LIMIT 5’;
    }
    update_option($this->listOrderOptionsName, $listOrderOptions);
    }

    AND

    function rd_query_db(){
    global $wpdb;
    $sortOrder;
    $order = $this->rd_get_list_order();
    if($order){
    if ($order[‘display_order’] == ‘ascending’){
    $sortOrder = ‘ASC LIMIT 5’;
    }else{
    $sortOrder = ‘DESC LIMIT 5’;
    }
    }

    BYE…

Viewing 1 replies (of 1 total)