What I really need to do is display the post content (ONLY before the <!–more–> tag). I am able to add the entire post content by using “post_content”, however I just want to display the content before the <!–more–>…
I have to edit something here (line 151 in postviews.php):
if($chars > 0) {
foreach ($most_viewed as $post) {
$post_title = htmlspecialchars(stripslashes($post->post_title));
$post_views = intval($post->views);
$post_views = number_format($post_views);
$temp .= "<li><a href=\"".get_permalink()."\">".snippet_chars($post_title, $chars)."</a></li>\n";
}
} else {
foreach ($most_viewed as $post) {
$post_title = htmlspecialchars(stripslashes($post->post_title));
$post_views = intval($post->views);
$post_views = number_format($post_views);
$temp .= "<li><a href=\"".get_permalink()."\">$post_title</a></li>\n";
}