[wp-testers] read more when using the_excerpt() and an excerpt
Paul Bearne
pbearne at gmail.com
Tue May 11 19:16:25 UTC 2010
Paul Bearne
http://www.bearne.com
On Tue, May 11, 2010 at 2:10 PM, Paul Bearne <pbearne at gmail.com> wrote:
> Hi all
>
> 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 : ?>
> Pluss
> /**
> * 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 ect.
>
> What going on here?
>
> Paul
>
>
>
>
> Paul Bearne
> http://www.bearne.com
>
>
>
More information about the wp-testers
mailing list