mirror of
https://github.com/10h30/genesis-simple-sidebars.git
synced 2026-06-05 15:08:34 +09:00
Allow sidebars to show in the custom Blog Posts page
This commit is contained in:
@@ -95,12 +95,14 @@ class Genesis_Simple_Sidebars_Core {
|
|||||||
|
|
||||||
$sidebars = array();
|
$sidebars = array();
|
||||||
|
|
||||||
if ( is_singular() ) {
|
if ( is_singular() || is_home() && isset( get_queried_object()->ID ) ) {
|
||||||
|
|
||||||
|
$post_id = get_queried_object()->ID;
|
||||||
|
|
||||||
$sidebars = array(
|
$sidebars = array(
|
||||||
'sidebar' => genesis_get_custom_field( '_ss_sidebar' ),
|
'sidebar' => genesis_get_custom_field( '_ss_sidebar', $post_id ),
|
||||||
'sidebar-alt' => genesis_get_custom_field( '_ss_sidebar_alt' ),
|
'sidebar-alt' => genesis_get_custom_field( '_ss_sidebar_alt', $post_id ),
|
||||||
'header-right' => genesis_get_custom_field( '_ss_header' ),
|
'header-right' => genesis_get_custom_field( '_ss_header', $post_id ),
|
||||||
);
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user