Advertisement
Guest User

Untitled

a guest
Nov 20th, 2015
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.31 KB | None | 0 0
  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' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement