[wp-trac] [WordPress Trac] #13361: the_excerpt() not return Continuation text when return excerpt for a post
WordPress Trac
wp-trac at lists.automattic.com
Tue May 11 21:16:59 UTC 2010
#13361: the_excerpt() not return Continuation text when return excerpt for a post
--------------------------+-------------------------------------------------
Reporter: pbearne | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.0
Component: Template | Version: 3.0
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
I am trying to get the_excerpt() to work on 3.0 beta 2 with 2010
we have this code
<?php if ( is_archive() || is_search() ) : // Only display Excerpts for
archives & search ?>
<div class="entry-summary">
<?php the_excerpt( __( 'Continue reading
<span class="meta-nav">→</span>', 'twentyten' ) ); ?>
</div><!-- .entry-summary -->
<?php else : ?>
also
/**
* Sets the "read more" link to something pretty.
*
* To override this link in a child theme, remove the filter and add your
own
* function tied to the excerpt_more filter hook.
*
* @since 3.0.0
* @return string A pretty 'Continue reading' link.
*/
function twentyten_excerpt_more( $more ) {
return ' … <a href="'. get_permalink() . '">' .
__('Continue reading <span class="meta-nav">→</span>', 'twentyten') .
'</a>';
}
add_filter( 'excerpt_more', 'twentyten_excerpt_more' );
in function.php
But I am not getting the "Continue reading " text and link if I enter an
extract into the post only for the more tag ect.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13361>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list