add excerpt function to function.php

Sometime in the wordpress themes we use we couldn’t find the excerpt inside the post form. But we can add them manually by pasting this code into the function.php.

Go to appearance button on your left of wordpress. Click on the Editor. FInd the function.php on the right side. Then add the following script.

<div style="color: blue;"//excerpt function
function excerpt_read_more_link($output) {
global $post;
return $output . '

ID) . ‘”> Baca Selengkapnya…‘;
}
add_filter(‘the_excerpt’, ‘excerpt_read_more_link’);

or in simple way paste this code to single.php or header.php
<a href="”> Read More…

source : http://codex.wordpress.org/Excerpt

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.