diff --git a/inc/helpers/aksrt-single-aside.php b/inc/helpers/aksrt-single-aside.php index 2e4e454b..08eaed0d 100644 --- a/inc/helpers/aksrt-single-aside.php +++ b/inc/helpers/aksrt-single-aside.php @@ -52,10 +52,16 @@ if (!function_exists('aksrt_single_render_aside')) : * @param array $ctx Single context. */ function aksrt_single_render_aside(array $ctx): void { - if (empty($ctx['show_aside'])) { + $post_id = (int) ($ctx['post_id'] ?? get_the_ID()); + + if (get_post_type($post_id) !== 'post') { return; } + // The body site-layout-* class owns visibility. Always render the post + // sidebar so User-Agent or request-specific context cannot remove widgets + // from an otherwise two-column article page. + $has_article_widgets = is_active_sidebar('all_sidebar_top') || is_active_sidebar('sidebar-article') || is_active_sidebar('all_sidebar_bottom');