我知道这真的很简单,但由于某种原因我没有想到,而且谷歌今天也没有帮助我。
我想输出页面内容,该怎么做?
我以为是这样的:
<?php echo the_content(); ?>
@Marc B 感谢您的评论。帮助我发现了这一点:
<?php if ( have_posts() ) : while ( have_posts() ) : the_post();
the_content();
endwhile; else: ?>
<p>Sorry, no posts matched your criteria.</p>
<?php endif; ?>
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)