Php WP:获取_摘录链接以显示完整内容

Php WP:获取_摘录链接以显示完整内容,php,html,wordpress,Php,Html,Wordpress,我第一次建立了一个WP主题,我对摘录有一个问题,当我点击阅读更多链接时,我只看到文章的摘录,而没有看到它的全部内容 这是我的循环 <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <article class="artikel"> <p class="datum_artikel"> <?php the_time('Y-m-j'

我第一次建立了一个WP主题,我对摘录有一个问题,当我点击阅读更多链接时,我只看到文章的摘录,而没有看到它的全部内容

这是我的循环

   <?php

  if (have_posts()) :
  while (have_posts()) :
  the_post();
  ?>    

    <article class="artikel">

    <p class="datum_artikel"> <?php the_time('Y-m-j');?> </p>
    <h4 class="headline_artikel"> <?php the_title();?> </h4>        
    <div class="nyheten"> <?php the_excerpt(); ?> </div> 

</article>
 <?php
 endwhile;
 endif;
 ?>
 </section><!-- Nyheter slut -->

 <?php

 get_footer(); 
?>

';
}
添加_过滤器('extract_more','new_extract_more');

我想念她的一些东西,对吗?

使用此链接我希望这是工作。。。不能让它工作
function new_excerpt_more( $more ) {
return ' <a class="read-more" href="'. get_permalink( get_the_ID() )  '">' . 
 __('Läs mer>>', 'your-text-domain') . '</a>';
 }

 add_filter( 'excerpt_more', 'new_excerpt_more' );