Wordpress - Change the Excerpt Dots to Article Link with Read More Text
I've been working with a couple of Wordpress 2.7 sites lately.
I could be wrong, but after perusing the Wordpress Codex, it doesn't seem there is an easy way to make your Archives, Categories, etc. have a customized link to your article. It's just [...], leaving the reader with the responsibility of clicking your title.
You could pass arguments to the the_content() function, but I believe you then must use the Wordpress <!--more--> tag.
Too tedious for me when posting.
So...
Open the wp-includes/formatting.php
find:
edit array_push($words, '[...]');
change to:
array_push($words, '[<a href=' . get_permalink() . '>' . 'read more</a>]');
Save.
I simply used Wordpress' built-in get_permalink() function to get the url for the post. Wrapped it in a link tag, and we're good to go.
There may be an easier or speed-friendly way of doing this, but this was my quick and dirty solution.
Note: I'm not sure the dots [...] are the case with every template, but they are the case in the ones I'm using.
Resources:
Wordpress Codex - Customizing the Read More
Wordpress Codex - the_content() function
Wordpress Codex - the_excerpt() function
Related:
MySQL Wordpress Errors - Can't start server : Bind on unix socket Permission denied