Read More link is easy to create in WordPress
If you want to add a read more link to your WordPress site posts.
Adding a read more link will work well with you Excerpts of you post content and will show up in your latest news or post categories.
You will need to open up your functions.php you have created in your child theme if you have not yet created a functions.php for your child theme the read this, if you have not created a child theme then you will need to start by reading this.
In your functions.php file add the following.
1 2 3 4 5 |
add_filter('excerpt_more', 'new_excerpt_more'); function new_excerpt_more($more) { global $post; return ' <a href="'. get_permalink($post->ID) . '">' . 'Read More &raquo;' . '</a>'; } |
Save it and upload it to your child theme folder and that is it……easy as that.