رفتن به مطلب

عدم نمایش نطرات در برگه ها


پست های پیشنهاد شده

سلام دوستان من قالب جدید نصب کردم

که نظرات زیر پست ها نشون میده ولی زیر برگه نمایش داده نمیشه

 

این کد فایل پست ها هست

<?php get_header(); ?>
<div class="wrapper2">
<div class="pagebody">
<?php if(mfamo_option('breadcrumbs') == 'on') { mfamo_breadcrumbs(); } ?>
<?php get_template_part('inc/temp/buy'); ?>
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('top_single_widgets') ) : ?><?php endif; ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="posts">
<div class="title">
<div class="right">
<h2><a title="<?php the_title_attribute(); ?>" rel="bookmark" href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
<div class="info">
<span>دسته بندی : <?php the_category(__(' ، ','kubrick')) ?></span>
<span>تاریخ : <?php the_time(__('l j F Y','kubrick')) ?></span>
<?php edit_post_link(__(' ویرایش ',''),'<span>','</span>'); ?>
</div><!-- info -->
</div><!-- right -->
<?php if(mfamo_option('sharing') == 'on') { ?>
<div class="social">
<span class="icon"></span>
<ul>
<li><a class="fb" title="فیسبوک" rel="nofollow" target="_blank" href="http://www.facebook.com/sharer/sharer.php?u=<?php the_permalink(); ?>"></a></li>
<li><a class="gp" title="گوگل پلاس" rel="nofollow" target="_blank" href="http://plus.google.com/share?url=<?php the_permalink(); ?>"></a></li>
<li><a class="tw" title="تویتر" rel="nofollow" target="_blank" href="http://twitter.com/home?status=<?php the_permalink(); ?>"></a></li>
</ul>
</div><!-- social -->
<?php } ?>
</div><!-- title -->
<div class="body">
<p style="text-align: center" >
<?php the_post_thumbnail(); ?></p>
<?php the_content(""); ?>
<?php get_template_part('inc/meta/default'); ?>
<?php get_template_part('inc/meta/manual'); ?>
<?php get_template_part('inc/meta/old'); ?>
<?php $option_meta = mfamo_option('ads_single');if (!empty($option_meta)) { ?>
<div class="ads_single">
<?php echo $option_meta; ?>
</div>
<?php } ?>
</div><!-- body -->
<?php if(mfamo_option('star_ratings') == 'on') { ?>
<div class="star_ratings">
<div class="txt">چه امتیازی می دهید؟</div>
<?php if( function_exists("mfamo_star_ratings") ) : print mfamo_star_ratings($pid); endif; ?>
</div><!-- star_ratings -->
<?php } ?>
<div class="shortlink">
<span>لینک کوتاه</span>
<a title="<?php the_title_attribute(); ?>" href="<?php echo get_bloginfo('url')."/?p=".$post->ID; ?>"><?php echo get_bloginfo('url')."/?p=".$post->ID; ?></a>
</div><!-- information -->
<div class="information">
<div class="inforight">
<div class="the_views"><?php if(function_exists('the_views')) { ?><?php the_views(); ?> مشاهده<?php } else { ?>-<?php } ?></div>
<div class="comments_link"><?php comments_popup_link('0 دیدگاه', '1 دیدگاه', '% دیدگاه'); ?></div>
</div><!-- inforight -->
<div class="infoleft">
<a class="more" href="<?php bloginfo('url'); ?>" title="<?php the_title_attribute(); ?>">صفحه اصلی</a>
<div class="like">
<?php if(function_exists('like_counter_p')) { like_counter_p(''); } ?>
<?php if(function_exists('dislike_counter_p')) { dislike_counter_p(''); }?>
</div><!-- like -->
</div><!-- infoleft -->
</div><!-- information -->
</div><!-- posts -->
<?php endwhile; endif; ?>
<?php get_template_part( 'inc/temp/buy2' ); ?>
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('bottom_index_widgets') ) : ?><?php endif; ?>
<?php if(mfamo_option('related') == 'on') { ?>
<div class="posts related">
<div class="titles">مطالب مشابه</div>
<ul>
<?php $related = get_posts( array( 'category__in' => wp_get_post_categories($post->ID), 'numberposts' => 6, 'post__not_in' => array($post->ID) ) ); if( $related ) foreach( $related as $post ) { setup_postdata($post); ?>
<li><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></li>
<?php } wp_reset_postdata(); ?>
</ul>
</div><!-- related -->
<?php } ?>
<div class="posts tags">
<div class="titles">برچسب ها</div>
<div class="body">
<h3><?php the_tags(' ','  '); ?></h3>
<?php if(has_tag()){ echo ' '; }else { echo '<p style="font:13px Yekan,tahoma">این مطلب بدون برچسب می باشد.</p>';}?>
</div>
</div>
<?php if(mfamo_option('comments') == 'on') { ?>
<div class="comments" id="comments">
<div class="titles">
<span>دیدگاه کاربران<span>
<i>انتشار یافته : <?php echo comments_number('0', '1', '%' );?>
<?php if ( $mfamo_unapproved_comments >= 0 ) { echo ' - در انتظار بررسی : ' . $mfamo_unapproved_comments; } ?>
</i>
</div>
<div class="body">
<?php comments_template(); ?>
</div><!-- body -->
</div><!-- comments -->
<?php } ?>
</div><!-- pagebody -->
<?php get_sidebar(); ?>
</div><!-- wrapper -->
<?php get_footer(); ?>

 

و این هم فایل برگه ها

a<?php get_header(); ?>
<div class="wrapper2">
<div class="pagebody">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="posts">
<div class="title">
<div class="right">
<h2><a title="<?php the_title_attribute(); ?>" rel="bookmark" href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
<div class="info">
<span>تاریخ : <?php the_time(__('l j F Y','kubrick')) ?></span>
<?php edit_post_link(__(' ویرایش ',''),'<span>','</span>'); ?>
</div><!-- info -->
</div><!-- right -->
<?php if(mfamo_option('sharing') == 'on') { ?>
<div class="social">
<span class="icon"></span>
<ul>
<li><a class="fb" title="فیسبوک" rel="nofollow" target="_blank" href="http://www.facebook.com/sharer/sharer.php?u=<?php the_permalink(); ?>"></a></li>
<li><a class="gp" title="گوگل پلاس" rel="nofollow" target="_blank" href="http://plus.google.com/share?url=<?php the_permalink(); ?>"></a></li>
<li><a class="tw" title="تویتر" rel="nofollow" target="_blank" href="http://twitter.com/home?status=<?php the_permalink(); ?>"></a></li>
</ul>
</div><!-- social -->
<?php } ?>
</div><!-- title -->
<div class="body">
<?php the_content(""); ?>
</div><!-- body -->
</div><!-- posts -->
<?php endwhile; endif; ?>
</div><!-- pagebody -->
<?php get_sidebar(); ?>
</div><!-- wrapper -->
<?php get_footer(); ?>

 

ممنون میشم تک نظرات رو به برگه ها اضافه کنید خودم که هرکار کردم صفحه برگه ها خطا میداد و بهم می ریخت !

 

لینک به ارسال

به گفتگو بپیوندید

هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید. اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .

مهمان
ارسال پاسخ به این موضوع ...

×   شما در حال چسباندن محتوایی با قالب بندی هستید.   حذف قالب بندی

  تنها استفاده از 75 اموجی مجاز می باشد.

×   لینک شما به صورت اتوماتیک جای گذاری شد.   نمایش به صورت لینک

×   محتوای قبلی شما بازگردانی شد.   پاک کردن محتوای ویرایشگر

×   شما مستقیما نمی توانید تصویر خود را قرار دهید. یا آن را اینجا بارگذاری کنید یا از یک URL قرار دهید.

×
×
  • اضافه کردن...