/ Published in: PHP
                    
                                        
From Web Design Ledger "13 Useful Code Snippets for WordPress Development"
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
// 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 »'; } ?>
<?php the_content($custommore); ?>
URL: http://webdesignledger.com/tips/13-useful-code-snippets-for-wordpress-development
Comments
 Subscribe to comments
                    Subscribe to comments
                
                