首页 > 解决方案 > the_content()在single.php中不显示

问题描述

显示有问题,while显示the_content(),表示页面正在工作。single.phpthe_title()

下面是带有single.php. 关了,没用。我将不胜感激。

<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
    <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php 
    the_title_attribute(); ?>"><?php the_title(); ?></a></h2>

    <div class="entry">
        <?php the_content(); ?>
    </div>


    </div>
    <?php endwhile; endif; ?>

    </div>

标签: phpwordpress

解决方案


推荐阅读