Guest User


a guest
Nov 20th, 2015
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. }
  6. add_filter( 'get_previous_post_where', 'my_previous_post_where' );
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add to your ad blocker whitelist or disable your adblocking software.