SHARE
TWEET

SB sermon page order by ID: NEW code

bhengh Jul 17th, 2013 24 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.id';
  5.                 if (!empty($atts['dir']))
  6.                         $dir = $wpdb->escape($atts['dir']);
  7.                 elseif ($sort_criteria == 'm.datetime' or $sort_criteria == 'm.id')
  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
 
Top