Warning: Invalid argument supplied for foreach() in /www/wwwroot/b.com/wp-content/themes/Luss_1.22/index.php on line 45
如下图:就改了一下网站通知,突然就变这个样子了,尴尬!
index.php文件如下:
if( _hui('ads_index_01_s') ) echo '
include('modules/tab_posts.php');
hui_moloader('hui_posts_sticky');
?>
<?php echo _hui('ads_index_02_s') ? '
'theme_location'=>'header_menu',
'container' => false,
'walker' => new wp_bootstrap_navwalker(),
'depth' => 1,
'items_wrap' => '
- %3$s
)); } ?>
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$args = array(
'ignore_sticky_posts' => 1,
'paged' => $paged
);
if( _hui('index_list_out_sticky') ){
$args['post__not_in'] = get_option( 'sticky_posts' );
}
if( _hui('notinhome') ){
$pool = array();
foreach (_hui('notinhome') as $key => $value) {
if( $value ) $pool[] = $key;
}
$args['cat'] = '-'.implode($pool, ',-');
}
query_posts($args);
get_template_part( 'excerpt' );
?>
<?php echo _hui('ads_index_03_s') ? '