I have the following snippet of code:
<?php>$more = '.....';?>
<p class="extra"><?php the_excerpt(); ?></p>
What I am trying to do is append the value of $more to the_excerpt() function but unsure how to do.
I have tried:
<p class="extra"><?php the_excerpt() . $more; ?></p>
but no go.
Any help would be appreciated.
Thanks.
sp.
http://codex.wordpress.org/Plugin_API/Filter_Reference/excerpt_more
The above solution is the preferred, but to make this work:
Change it to:
Just echo out the
$more
after the excerpt:or a better solution would bet the use a filter and leave the template as is, for example your template uses just
the_excerpt()