From 69f99572d1b19fe430f56ab93e881c56a8d26507 Mon Sep 17 00:00:00 2001 From: Glynn Quelch Date: Mon, 11 Nov 2024 11:51:01 +0000 Subject: [PATCH] ensure the defined post count for featured post only applies to the blog post --- themes/osi/functions.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/themes/osi/functions.php b/themes/osi/functions.php index 4a84a35..12cc8a7 100755 --- a/themes/osi/functions.php +++ b/themes/osi/functions.php @@ -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' );