<div id="top-menu">
<div class="menu">
<!--end Random posts-->
</div>
<div id="little-side">
<!--start Category-->
<div id="little-side-up">
<div id="little-side-uptext">تبلیغات</div><div id="little-side-uptext-en">ads</div>
</div>
<div id="little-side-body">
<div id="little-side-btext"><ul>
<center>
<a href="http://jojack-dl.dde.ir/" target="_blank"><img class="banner-side" src="http://myvivaz.megfa1.tk/wp-content/uploads/2011/11/banner-1201-2403.gif" alt=""></a>
</center>
</ul>
</div>
</div>
<div id="little-side-down"></div>
<!--end Category-->
<!--start top posts-->
<div id="little-side-up">
<div id="little-side-uptext">برتربن مطالب</div><div id="little-side-uptext-en">Best Posts</div>
</div>
<div id="little-side-body">
<div id="little-side-btext">
<?php if (function_exists('get_most_viewed')): ?>
<?php get_most_viewed(''); ?>
<?php endif; ?>
</div>
</div>
<div id="little-side-down"></div>
<!--end top posts-->
<!--start Category-->
<div id="little-side-up">
<div id="little-side-uptext">موضوعات</div><div id="little-side-uptext-en">Category</div>
</div>
<div id="little-side-body">
<div id="little-side-btext"><ul><?php wp_list_cats('sort_column=name'); ?></ul>
</div>
</div>
<div id="little-side-down"></div>
<!--end Category-->
<!--start Tags-->
<div id="little-side-up">
<div id="little-side-uptext">ابر برچسب ها</div><div id="little-side-uptext-en">Tags</div>
</div>
<div id="little-side-body">
<div id="little-side-btext">
<?php wp_tag_cloud('smallest=8&largest=13&'); ?>
</div>
</div>
<div id="little-side-down"></div>
<!--end Tags-->
</div>
<div id="left-line">
<!--start ads-->
<div id="little-side-up">
<div id="little-side-uptext">تبلیغات</div><div id="little-side-uptext-en">ads</div>
</div>
<div id="little-side-body">
<div id="little-side-btext"><ul>
<center>
<a href="http://jojack-dl.dde.ir/" target="_blank"><img class="banner-side" src="http://myvivaz.megfa1.tk/wp-content/uploads/2011/11/banner-1201-2403.gif" alt=""></a>
</center>
</ul>
</div>
</div>
<div id="little-side-down"></div>
<!--end ads-->
<!--start new-->
<div id="little-side-up">
<div id="little-side-uptext">جدیدترین مطالب</div><div id="little-side-uptext-en">New Posts</div>
</div>
<div id="little-side-body">
<div id="little-side-btext">
<ul><?php wp_get_archives('type=postbypost&limit=10'); ?></ul>
</div>
</div>
<div id="little-side-down"></div>
<!--end new-->
<!--start Friends-->
<div id="little-side-up">
<div id="little-side-uptext">پیوندها</div><div id="little-side-uptext-en">Links</div>
</div>
<div id="little-side-body">
<div id="little-side-btext">
<ul><?php wp_list_bookmarks('title_li=&categorize=0'); ?></ul>
</div>
</div>
<div id="little-side-down"></div>
<!--end Friends-->
<!--start Last Comments-->
<div id="little-side-up">
<div id="little-side-uptext">آخرين نظرات</div><div id="little-side-uptext-en">Last
Comments</div>
</div>
<div id="little-side-body">
<div id="little-side-btext">
<?php
global $wpdb;
$sql = "SELECT DISTINCT ID, post_title, post_password, comment_ID,
comment_post_ID, comment_author, comment_date_gmt, comment_approved,
SUBSTRING(comment_content,1,62) AS com_excerpt
FROM $wpdb->comments
LEFT OUTER JOIN $wpdb->posts ON ($wpdb->comments.comment_post_ID =
$wpdb->posts.ID)
WHERE comment_approved = '1' AND comment_type = '' AND
post_password = ''
ORDER BY comment_date_gmt DESC
LIMIT 7";
$comments = $wpdb->get_results($sql);
$output = $pre_HTML;
$output .= "\n<ul>";
foreach ($comments as $comment) {
$output .= "\n<li>".strip_tags($comment->comment_author)
." : " . "<a href=\"" . get_permalink($comment->ID) .
"#comment-" . $comment->comment_ID . "\" title=\"on " .
$comment->post_title . "\">" . strip_tags($comment->com_excerpt)
."</a></li>";
}
$output .= "\n</ul>";
$output .= $post_HTML;
echo $output;?>
</ul> </div>
</div>
<div id="little-side-down"></div>
<!--end Last Comments-->
</div>
</div>
ممنون مشکل دومم حل شد
لطف کنید کد امار گیرو بزارید من وقتی میزارم قالب بهم می ریزه ممنون میشم
لطفا بخش ورودی گوگلم داشته باشه
ادرس سایتم http://jojack-dl.dde.ir/