daily pastebin goal
10%
SHARE
TWEET

Filter events by post date

BakerMan Jan 31st, 2014 182 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. add_filter( 'tribe_events_query_posts_orderby', 'change_tribe_query_orderby' );
  2.  
  3. function change_tribe_query_orderby() {
  4.         global $wpdb;
  5.         return "$wpdb->posts.post_date DESC";
  6. }
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