P粉5233350262023-09-02 00:01:22
It seems that $page_meta
is not an array, but a string. I'm guessing the theme expects those variable names as meta variables for that page.
This also relates to sidebars, whether used or not.
Understood. I googled the theme name smt_getOption
and saw this:
/* 大约在第26行 */ /* 原始代码: $page_meta[ 'sidebar' ] = 'smt_default_sidebar'; $page_meta[ 'sidebar_position' ] = smt_getOption( 'layout', 'pagelayout' );*/ /* 更正后的代码:*/ $page_meta = array('sidebar'=>'smt_default_sidebar','sidebar_position'=>smt_getOption( 'layout', 'pagelayout' ));