on Technology

Modifying the WordPress (more…) link

I found the more feature of WordPress to be very useful, however I wanted to change the link that was displayed. The default is "(more...)", and I wanted it to say something more useful, such as "Continued...". After doing some Googling and finding nothing, I dug through all the PHP files included with WordPress. Finally I found the following in template-functions-post.php, located in the /wp-includes/ directory:

So I figured I would just change the two instances of (more...) to what I wanted to see, save, and upload the file. Well that didn't work. So I continued looking. Finally I found inside the directory for my theme, inside the index.php file, the following:

Ah ha! After changing that, and uploading the file, the (more...) link changed to "Continued...".

One plugin I downloaded to enhance the more feature of WordPress, is the less plugin by Bennett McElwee. By default, WordPress only shows the text after the more link, not the entire post. This plugin changes that by forcing the more link to point to the full URI of the post. Very useful plugin!

Write a Comment

Comment