亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

請問該如何操作才能顯示評論?我的?page.php文件代碼如下:

請問該如何操作才能顯示評論?我的?page.php文件代碼如下:

藍山帝景 2022-10-27 13:13:26
<?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();
}
?>
應該就可以了。
希望幫到你了。

查看完整回答
反對 回復 2022-11-01
  • 1 回答
  • 0 關注
  • 118 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號