Guest User

Untitled

a guest
Dec 10th, 2015
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. if(empty($query->is_feed)) {
  2. if ( $paged > 1 ) {
  3. $query->set( 'offset', intval($offset) + ( ( $paged - 1 ) * $limit ) );
  4. } else {
  5. $query->set( 'offset', intval($offset) );
  6. }
  7. }
Advertisement
Add Comment
Please, Sign In to add comment