SB sermon page order by ID: OLD code

bhengh Jul 17th, 2013 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.                 if (isset($_REQUEST['sortby']))
  2.                         $sort_criteria = $wpdb->escape($_REQUEST['sortby']);
  3.                 else
  4.                         $sort_criteria = 'm.datetime';
  5.                 if (!empty($atts['dir']))
  6.                         $dir = $wpdb->escape($atts['dir']);
  7.                 elseif ($sort_criteria == 'm.datetime')
  8.                         $dir = 'desc';
  9.                 else
  10.                         $dir = 'asc';
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand