Skip to content

Commit

Permalink
Merge pull request #147 from gin0115/fix/gh144-only-11-board-members-…
Browse files Browse the repository at this point in the history
…showing

Only limit the number of posts to account for the sticky blog on page
  • Loading branch information
ahegyes authored Nov 12, 2024
2 parents d4f9561 + 69f9957 commit 935953b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions themes/osi/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,11 @@ function osi_query_offset( WP_Query &$query ) {
return;
}

// If this is a page and its not set as the page for posts, return.
if ( (int) get_option( 'page_for_posts' ) !== (int) get_queried_object_id() ) {
return;
}

$offset = -1;
$ppp = get_option( 'posts_per_page' );

Expand Down

0 comments on commit 935953b

Please sign in to comment.