سلام
چجوری میتونم برترین مطالب + بازی انلاین رو تو صفحه اصلی نشون بدم؟
کدهای سایدبار هستش. ممنون میشم کمک کنید.
<div class="left2">
<div id="search">
<form method="get" action="<?php bloginfo('siteurl'); ?>/" >
<input type="text" id="input" name="s" size="30" value="جستجو..." onfocus="if(this.value=='جستجو...')this.value=''" onblur="if(this.value=='')this.value='جستجو...'" /></form>
</div>
<div style="clear:both;"></div>
<div class="sidebar-box">
<H3><span><b>بازی آنلاین</b></H3></span>
<?php
$al_post = get_posts( 'showposts=3&cat=1' );
if( $al_post ) :
foreach( $al_post as $post ) :
setup_postdata( $post );
?>
<div class="gameimg">
<a title="<?php the_title(); ?>" href="<?php the_permalink() ?>">
<img border="0" src="<?php echo get_post_meta($post->ID, 'game',true); ?>" />
</a>
</div>
<?php endforeach; ?>
<?php endif; ?>
<div style="clear:both;"></div>
<a href="#" target="blank">
<div class="game-more">
ادامه بازی ها ...
</div>
</a>
</div>
<div class="sidebar-box">
<H3><span><b>اخبار برتر</b></H3></span>
<?php
query_posts('showposts=5&cat=3'); ?>
<?php while (have_posts()) : the_post(); ?>
<div class="hotposts">
<a href="<?php the_permalink() ?>" rel="bookmark" target="_blank" title="Read the rest of <?php the_title_attribute(); ?>">
<div class="gameimg"><img src="<?php echo get_post_meta($post->ID, "news", true);?>" /></div></a>
<H3><span><a href="<?php the_permalink() ?>" rel="bookmark" target="_blank" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></span></H3>
<?php the_excerpt(); ?>
<div style="clear:both;"></div>
</div>
<?php endwhile; ?>
</div>
<div class="sidebar-box">
<H3><span><b>برترین مطالب</b></H3></span>
<ul>
<?php get_most_viewed('both', 27); ?>
</ul>
</div>
<div class="rss-box">
<H3><span><b>خوراک سایت</b></H3></span>
<ul>
<p align="center">
<form style="border:0px solid #ccc;padding:0px;text-
align:center;" action="http://feedburner.google.com/fb/a/mailverify" method="post" target="popupwindow" onsubmit="window.open('http://feedburner.google.com/fb/a/mailverify?uri=alamto', 'popupwindow', 'scrollbars=yes,width=550,height=500');return true">
</p>
<a href="http://feeds2.feedburner.com/alamto">
<img style="float:left;" alt="فید برنر آلامتو" src="http://www.alamto.com/Files/rss.png" border="0"></a>
<p><font face="Tahoma" style="font-size: 8pt">
شما ميتوانيد با وارد كردن ايميل (نشانه اينترنتي) خود در كادر پايين و تاييد آن و ثبت نام خود در گروه بزرگ آلامتو (فیدبرنر) مطالب سايت را به صورت رايگان در ايميل خود دريافت كنيد و از امكاناتي كه سايت مخصوص كاربران عضو شده قرار داده است استفاده كنيد .
</font></p>
<p align="center"><font face="Tahoma" style="font-size: 8pt">
<br>
</font>
<input class=mailbox type="text" style="width:123; height:18" name="email" value="Leave You Email Here" onfocus="if (this.value == 'Leave You Email Here') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Leave You Email Here';}" title="ایمیل خود را اینجا بگذارید"/>
<input type="hidden" value="alamto" name="uri"/><input type="hidden" name="loc" value="en_US"/>
</span></font><font face="Tahoma"><span style="font-size: 8pt"><br>
<input class=mailbtn type="submit" value="عضویت" />
<br />
</ul>
</div>
</div>