Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I found the code on the WP Recipies page to force excerpts on the home page. http://goo.gl/1hUJJ

But how do I modify that snippet to add a hyperlink to the full post for the "..." part? Thanks for the help!

share|improve this question

1 Answer

up vote 2 down vote accepted

Replace the last row of code from:

return $content;

To:

return $content.'<a href="'.get_permalink($post->ID).'">Read More...</a>';
share|improve this answer
hi there, thanks for the tip. Is there a way I can have this be right at the end of the excerpt? Right now it shows it after a line break. Example: startupjobsla.com I am using the Coraline template by Automattic. – noel saw Mar 15 '11 at 5:28
simply add a class to the link and style it with CSS – Bainternet Mar 15 '11 at 13:18

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.