bhengh

SB sermon page order by ID: OLD code

Jul 17th, 2013
67
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