really thanks for your large message, but they all about content in main area,
im talking about just sidebar, last messages, main area isnt problem, i dont concern “read more” tag
these codes much closer what i say, but i dont know how edit it for just sidebar
function the_content_limit($max_char, $more_link_text = '(more...)', $stripteaser = 0, $more_file = '') {
$content = get_the_content($more_link_text, $stripteaser, $more_file);
$content = apply_filters('the_content', $content);
$content = str_replace(']]>', ']]>', $content);
if (strlen($_GET['p']) > 0) {
echo $content;
}
else if ((strlen($content)>$max_char) && ($espacio = strpos($content, " ", $max_char ))) {
$content = substr($content, 0, $espacio);
$content = $content;
echo $content;
echo "<a href='";
the_permalink();
echo "'>"."..."."</a>";
echo "";
echo "<a href='";
the_permalink();
echo "'>".$more_link_text."</a>
";
}
else {
echo $content;
}
}
?>
my sidebar:
-
<h2>Last Posts</h2>
<?php get_archives(‘postbypost’, 15); ?>
–> if i can add a function here that explain each messages with a few words, it will perfect.