[wp-hackers] Can't seem to override more link

Micky Hulse mickyhulse.lists at gmail.com
Fri Aug 31 18:40:07 UTC 2012

Hi Chris, thanks for the reply, I really appreciate it.

On Fri, Aug 31, 2012 at 11:34 AM, Chris McCoy <chris at lod.com> wrote:
> function new_excerpt_more($more) {
>         return '<a class="more-link"
> href="'.get_permalink().'">more...</a>';
> }
> add_filter('excerpt_more', 'new_excerpt_more');

Yah, that's not working. Sorry that I did not post my full code;
here's what I've got:


<?php the_content(); ?>

... and here's from functions.php:

function crazy_excerpt_more($more) {
	global $post;
	return '<p class="custom_more-link"><a href="'.
get_permalink($post->ID) . '">More!!!!!!!!!</a></p>';
add_filter('excerpt_more', 'crazy_excerpt_more');

I assume there's some sort of catch to using <!--more--> in the post
that "excerpt_more" does not override?

Sorry if noob question. :(

I'm probably overlooking something obvious here.

Thanks again!


More information about the wp-hackers mailing list