Return to Snippet

Revision: 21996
at December 28, 2009 11:34 by mdrisser


Initial Code
// Edit index.php, replace the_content("Read more"); with the following code
<?php $custommore = get_post_meta($post->ID, 'custom_more', true); ?>
<?php if (!$custommore) { $custommore = 'Read More &raquo;'; } ?>
<?php the_content($custommore); ?>

Initial URL
http://webdesignledger.com/tips/13-useful-code-snippets-for-wordpress-development

Initial Description
From Web Design Ledger "13 Useful Code Snippets for WordPress Development"

Initial Title
Wordpress - Custom “Read More” Links for Your Posts

Initial Tags
wordpress

Initial Language
PHP