<?php get_header(); ?><section class="uazoh7-section"><div class="container"><div class="row"><?phpif(isset($smof_data['blog_sidebar_pos'])) {if($smof_data['blog_sidebar_pos']=='0') {echo '<div class="col-lg-12">';if (have_posts()) : while (have_posts()) : the_post(); the_content();endwhile;endif; uazoh_navigation();echo '</div>';}elseif($smof_data['blog_sidebar_pos']=='2') {echo '<div class="col-lg-9">';if (have_posts()) : while (have_posts()) : the_post(); the_content();endwhile;endif; uazoh_navigation();echo '</div><div class="col-lg-3">';if(isset($smof_data['blog_sidebar'])) {dynamic_sidebar(''.$smof_data['blog_sidebar'].''); }else {dynamic_sidebar('sidebar'); }echo '</div>';}elseif($smof_data['blog_sidebar_pos']=='1') {echo '<div class="col-lg-3">';if(isset($smof_data['blog_sidebar'])) {dynamic_sidebar(''.$smof_data['blog_sidebar'].''); }else {dynamic_sidebar('sidebar'); }echo '</div><div class="col-lg-9">';if (have_posts()) : while (have_posts()) : the_post(); the_content();endwhile;endif; uazoh_navigation();echo '</div>';}} ?></div></div></section><?php get_footer(); ?>
1 回答

largeQ
TA貢獻2039條經驗 獲得超8個贊
你這個沒有看到你添加評論函數,
自然就沒有文章評論嘍。
在倒數第二行的上面添加以下代碼,
<?php
if (function_exists('wp_list_comments')) {
comments_template('', true);
} else {
comments_template();
}
?>
應該就可以了。
希望幫到你了。
- 1 回答
- 0 關注
- 118 瀏覽
添加回答
舉報
0/150
提交
取消