Posted By

mdrisser on 12/28/09


Tagged

wordpress


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

Xtraboy
BrianCoyDesign


Wordpress - Custom “Read More” Links for Your Posts


 / Published in: PHP
 

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

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

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

Report this snippet  

You need to login to post a comment.