Skip to content

Commit

Permalink
ensure the defined post count for featured post only applies to the b…
Browse files Browse the repository at this point in the history
…log post
  • Loading branch information
gin0115 committed Nov 11, 2024
1 parent a1ddea6 commit 69f9957
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 69f9957

Please sign in to comment.