Thanks, first.
I tried placing the suggested code in index.php</>. It doesn’t seem to work. In fact as it existed the excerpt ends with the string […]. So I tried putting in the other piece of code suggested under the same forum post ‘Function Reference’. Not successful. Have I placed the code at the right place? The total code after placement appears like this in my index.php</>:
‘ $output .= ‘<div class=”post-content clearfix”>’;
$post_preview = get_arclite_option(‘post_preview’);
if($post_preview==’excerpt’) $output .= get_the_excerpt(); else $output .= get_the_content(__(‘Read the rest of this entry »’, ‘arclite’));
function new_excerpt_more($more) {
return ‘[…..]’;
}
add_filter(‘excerpt_more’, ‘new_excerpt_more’);
function new_excerpt_more($more) {
global $post;
return ‘ID) . ‘”>Read the Rest…‘;
}
add_filter(‘excerpt_more’, ‘new_excerpt_more’);
$output .= ‘</div>’;’
Does it help to help me further?
Thanks.
Sorry, I’ve placed the code in functions.php; wriongly mentioned index.phpin the reply. :p
please mark the code with backticks or the ‘code’ button to keep it readable.
it looks as if you unneccessarily mixed some code together.
you would only need to add this section to functions.php of your theme:
add_filter('excerpt_more', 'new_excerpt_more');
function new_excerpt_more($more) {
...
...
}
add_filter('excerpt_more', 'new_excerpt_more');
and leave the code in index.php unchanged:
Thanks again. Since I have no good knowledge of code, I wasn’t sure about the exact location of your code placement on my template. Moreover, I’m not sure if the Arclite theme template code is different. Hence I had to use a plug in which helped me get what I wanted. You may see it at http://www.evolve-forever.com/articles.