Worpress Code snippets, Like excerpt, featured image
- By Default WordPress displays the excerpt of the current post with the “[…]” text at the end, which is not a “read more” link. So to have a custom excerpt add following to the function.php
function new_excerpt_more($more) {
global $post;
return ‘<p><a href=”‘ . get_permalink($post->ID) . ‘”> Continue Reading</a></p>’;
}
add_filter(‘excerpt_more’, ‘new_excerpt_more’);
- To Enable Featured Image
- To Avoid Google Ranking please find detailed article at ecarobar.com
Advertisements