Archive for the ‘Blogger tutorial’ Category
How to Display a Read More link in WordPress Excerpts
August 7, 2011
Leave a comment
To prevent duplicate content, improve site load time, and for better SEO many bloggers have started to use post excerpts. Excerpts are mini-descriptions of the posts shown on the main blog page, category pages, and archive pages. You can see a live example by visiting any of our categories. But if you notice, our read more button is added on a separate line from the excerpt text. In this article, we will show you how to automatically add a read more link in WordPress Excerpts.
First open your functions.php file, and paste the following code inside the php tags:
// Changing excerpt more function new_excerpt_more($more) { global $post; return '… <a href="'. get_permalink($post->ID) . '">' . 'Read More »' . '</a>'; } add_filter('excerpt_more', 'new_excerpt_more');
Categories: Blogger tutorial
Excerpts, Read more, Tutorials, wordpress
The Blogger’s HandBook
April 24, 2011
Leave a comment
Categories: Blogger tutorial, E-Book Download, Uncategorized
E-books