阅读更多标签不在页面上工作-WordPress

阅读更多标签不在页面上工作-WordPress,wordpress,Wordpress,我不确定这里出了什么问题,因为我发现我的问题到处都是相同的解决方法。“阅读更多”标签不会显示在我的页面上,而我的页面会吸引最新的帖子。我已经研究过,简单地添加这个代码就能解决这个问题 <?php global $more; $more = 0; ?> //The code must be inserted ahead of the call to the content <?php the_content('Continue Reading'); ?> //必须在调

我不确定这里出了什么问题,因为我发现我的问题到处都是相同的解决方法。“阅读更多”标签不会显示在我的页面上,而我的页面会吸引最新的帖子。我已经研究过,简单地添加这个代码就能解决这个问题

<?php
global $more;
$more = 0;
?>
//The code must be inserted ahead of the call to the content

<?php the_content('Continue Reading'); ?>

//必须在调用内容之前插入代码
然而,我似乎无法让它发挥作用。任何其他想法或我只是使用错误的代码,引用可能!这是我的页面的一个想法,如果您能帮我确定在哪里插入代码,我将不胜感激。非常感谢各位

 get_header(); ?>

 <div id="primary" class="site-content">
 <div id="content" role="main">
   <?php while ( have_posts() ) : the_post(); ?>
      <?php if ( has_post_thumbnail() ) : ?>
     <div class="entry-page-image">
    <?php the_post_thumbnail(); ?>
    </div><!-- .entry-page-image -->
    <?php endif; ?>

    <?php get_template_part( 'content', 'page' ); ?>

        <?php endwhile; // end of the loop. ?>

    </div><!-- #content -->
</div><!-- #primary -->

<?php get_sidebar( 'front' ); ?>
<?php get_footer(); ?>
get_header();?>

试试这个。code。检查您是否在管理中为页面和帖子提供了插入更多标签

get_header(); ?>

 <div id="primary" class="site-content">
 <div id="content" role="main">
<?php while ( have_posts() ) : the_post(); ?>
  <?php if ( has_post_thumbnail() ) : ?>
 <div class="entry-page-image">
<?php the_post_thumbnail(); ?>
</div><!-- .entry-page-image -->
<?php endif; ?>

<?php 
        global $more;
    $more = 0;

 get_template_part( 'content', 'page' ); ?>

    <?php endwhile; // end of the loop. ?>

 </div><!-- #content -->
</div><!-- #primary -->

<?php get_sidebar( 'front' ); ?>
<?php get_footer(); ?>
get_header();?>