SHARE
TWEET

Untitled

a guest Nov 20th, 2015 101 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function my_previous_post_where() {
  2.         global $post, $wpdb;
  3.         return $wpdb->prepare( "WHERE p.menu_order < %s AND p.post_type = %s AND p.post_status = 'publish' AND p.post_password = '' AND tt.taxonomy = %s", $post->menu_order, $post->post_type);
  4. }
  5.  
  6. add_filter( 'get_previous_post_where', 'my_previous_post_where' );
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