• Hi All,

    I’ve just copied this function virtually straight from the_excerpt’s Codex page.

    It works just as expected, except when I paste in my own excerpt. If I let WP grab an excerpt from the_content, it works fine. But when I paste in my own, it doesn’t show the Read More link at all.

    The two Speakers illustrate the issue on my site. One has an automatically generated excerpt, and I’ve defined the other one.

    Is this a bug or am I doning something wrong?

    Thanks!

    Terry

    function new_excerpt_more($more) {
           global $post;
    	return '<a class="moretag" href="'. get_permalink($post->ID) . '">Read the full bio → </a>';
    }
    add_filter('excerpt_more', 'new_excerpt_more');
  • The topic ‘A bug with the_excerpt() and a Read More link?’ is closed to new replies.