| 1 | | I am trying to get the_excerpt() to work on 3.0 beta 2 with 2010 |
| 2 | | |
| 3 | | we have this code |
| 4 | | <?php if ( is_archive() || is_search() ) : // Only display Excerpts for archives & search ?> |
| 5 | | <div class="entry-summary"> |
| 6 | | <?php the_excerpt( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?> |
| 7 | | </div><!-- .entry-summary --> |
| 8 | | <?php else : ?> |
| 9 | | also |
| 10 | | /** |
| 11 | | * Sets the "read more" link to something pretty. |
| 12 | | * |
| 13 | | * To override this link in a child theme, remove the filter and add your own |
| 14 | | * function tied to the excerpt_more filter hook. |
| 15 | | * |
| 16 | | * @since 3.0.0 |
| 17 | | * @return string A pretty 'Continue reading' link. |
| 18 | | */ |
| 19 | | function twentyten_excerpt_more( $more ) { |
| 20 | | return ' … <a href="'. get_permalink() . '">' . __('Continue reading <span class="meta-nav">→</span>', 'twentyten') . '</a>'; |
| 21 | | } |
| 22 | | add_filter( 'excerpt_more', 'twentyten_excerpt_more' ); |
| 23 | | |
| 24 | | in function.php |
| 25 | | |
| 26 | | 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. |
| | 1 | The excerpt_more text is only used when an excerpt needs to be cut down in length in wp_trim_excerpt. A custom excerpt will not get a "Continue reading" link in Twenty Ten. |