قالب که قرار داده بودید دانلود و ویرایش کردم به جاش جایگزین کنید :
کد PHP:
<?php get_header(); ?>
<?php include(TEMPLATEPATH."/sidebar.php");?>
<?php $count=count+1; ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php if ($count == 1) : ?>
<?php endif; $count++; ?>
<!--post-->
<div class="base-right">
<div class="postnext">
<div class="postnext-title">
<a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a>
</div>
<div class="right-line"></div>
<li class="postnext-more" >
<i class="livicon" data-name="user" data-size="18" data-c="#fff" style="padding-left:5px" data-hc="#fff"></i>نویسنده : <?php the_author_link(); ?> |
<i class="livicon" data-name="calendar" data-size="18" data-c="#fff" style="padding-left:5px" data-hc="#fff"></i> نوشته شده در: <?php the_time('j') ?> <?php the_time('M') ?><?php the_time('Y') ?>
</li>
<div class="jahan-postd2">
<div style="text-align:justify; font-size: 12px; font-family:BYekan;padding:5px;color:#7a7a7a;">
<?php the_content('<div id="hidden">{...}</div>'); ?>
</div>
<br>
<div class="main-user2">
<div class="title-user">
برچسب ها</div>
<div class="right-line"></div>
<p>
<?php the_tags('برچسب ها : ' , ' , ' , ''); ?>
</p>
</div>
<div class="main-dl2">
<div class="title-mor">
مطالب مرتبط</div>
<div class="right-line"></div>
<?php
$related = get_posts( array( 'category__in' => wp_get_post_categories($post->ID), 'orderby' => 'rand' , 'numberposts' => 7, 'post__not_in' => array($post->ID) ) );
if( $related ) foreach( $related as $post ) {
setup_postdata($post); ?>
<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>">
<?php the_post_thumbnail(array(108,108)); ?></a>
<?php }
wp_reset_postdata(); ?>
</div>
<?php comments_template(); ?>
</div>
<?php get_footer(); ?>
</div>