我只想从摘要摘录中删除“继续阅读”链接,而不想从自动摘录中删除“继续阅读”链接,自动摘录的过滤器很容易获得。
这是原始代码;它来自Showcase模板页面模板:
<?php while ( have_posts() ) : the_post(); ?>
<?php
if ( \'\' != get_the_content() )
get_template_part( \'content\', \'intro\' );
?>
<?php endwhile; ?>
以下是简介:<div class="entry-content">
<?php the_content(); ?>
<?php wp_link_pages( array( \'before\' => \'<div class="page-link"><span>\' . __( \'Pages:\', \'mytheme\' ) . \'</span>\', \'after\' => \'</div>\' ) ); ?>
<?php edit_post_link( __( \'Edit\', \'mytheme\' ), \'<span class="edit-link">\', \'</span>\' ); ?>
</div><!-- .entry-content -->
-->