为什么我的首页侧边栏和footer不显示?

<?php the_content('Continue Reading »'); ?>取出文章内容,但是首页侧边栏和footer就不显示,把它注释掉以后就可以显示,不知道是不是这个函数引起的问题。求高手解答

慕森王
浏览 106回答 2
2回答

梵蒂冈之花

<?php the_content('Continue Reading »'); ?>这个是在首页显示 阅读全文的按钮的、和你的侧边栏不显示是没有关系、如果你注释掉就正常了、就需要看下代码到底是哪里的问题!

临摹微笑

绝对不是的,<?php the_content('Continue Reading »'); ?>是获取文章的内容,必须放在<? if (have_posts()) : while (have_posts()) : the_post(); update_post_caches($posts); ?><?php the_content('Continue Reading »'); ?><?php endwhile; else : ?><?php endif; ?>主要还是不知道你的具体情况怎样
打开App,查看更多内容
随时随地看视频慕课网APP