Sunday, 25 August 2013

my single.php is mixup on some post for no reason

my single.php is mixup on some post for no reason

some of my post is shown well(like http://exam.downloadkaran.com/?p=453)
but another post is not shown well(like
http://exam.downloadkaran.com/?p=258)!!! i don't know exactly what should
i have to search for. would u please to help me to find a clue. where to
start to find my bug. i compare two file but find no mistake all div and
other tag are closed well. in some post the problem is solved when i
remove
<?php the_tags(__(' ','dnld'), __(', ','dnld'), __('','dnld')); ?>
but in another one no. it is so complex situation!!! my single.php is here:
<?php include (TEMPLATEPATH . "/sevenmid.php"); ?>
<div class="midpostbody post">
<div class="postheader">
<a href="<?php the_permalink();?>"><?php
the_title();?></a>
</div><!--End post header-->
<div class="view"><span><?php
if(function_exists('the_views')) { the_views(); }
?></span></div>
<div class="category"><span><?php the_category(',');
?></span><a href="#">äÑã ÇÝÒÇÑ</a></div>
<div class="clear"></div>
<div class="postimg"> <?php if(has_post_thumbnail()){
the_post_thumbnail();} else {?>
<img src="<?php bloginfo('template_directory');
?>/images/Koala.jpg" alt="<?php the_title();?>" />
<?php }?>
</div>
<div class="customsize">
<?php if(get_post_custom_values('sizelabel')) : ?>
<span><?php echo get_post_meta($post->ID,
'sizelabel',true); ?>&nbsp;|</span>
<?php endif; ?>
<?php if(get_post_custom_values('size')) : ?>
<span> <?php echo get_post_meta($post->ID,
'size',true); ?></span>
<?php endif; ?>
</div>
<div id="sincontent">
<?php the_content(); ?>
</div>
<div id="postdata">
<div id="sharepic"><img src="<?php
bloginfo('template_directory'); ?>/images/sharep.png"
alt="share here." /></div>
<div id="postsocial">
<ul>
<li><a href="#"><img src="<?php
bloginfo('template_directory');
?>/images/cloob.png" alt="cloob" /></a></li>
<li><a href="#"><img src="<?php
bloginfo('template_directory');
?>/images/twitter.png" alt="cloob" /></a></li>
<li><a
href="#"><img src="<?php
bloginfo('template_directory');
?>/images/facebook.png" alt="cloob"
/></a></li> <li><a
href="#"><img src="<?php
bloginfo('template_directory');
?>/images/google.png" alt="cloob" /></a></li>
<li><a
href="#"><img src="<?php
bloginfo('template_directory');
?>/images/technorati.png" alt="cloob"
/></a></li>
<li><a href="#"><img src="<?php
bloginfo('template_directory');
?>/images/delicious.png" alt="cloob"
/></a></li>
<li><a href="#"><img
src="<?php bloginfo('template_directory');
?>/images/friendfeed.png" alt="cloob"
/></a></li>
</ul>
</div><!--End postsocial-->
<div id="tabs">
<ul>
<li> <a href="#tabs-3">á&#1740;ä˜ åÇ&#1740;
ÏÇäáæÏ</a></li>
<li> <a href="#tabs-1">ÑÇåäãÇ&#1740;
ÏÇäáæÏ</a></li>
<li> <a href="#tabs-2">ÑÇåäãÇ&#1740;
äÕÈ</a></li>
<li> <a href="#tabs-4">ãÔÎÕÇÊ</a></li>
<li> <a href="#tabs-5">Ó&#1740;ÓÊã ãæÑÏ
ä&#1740;ÇÒ</a></li>
</ul>
<div id="tabs-1">
<p>
<?php if(get_post_custom_values('direct')) : ?>
<span> <?php echo get_post_meta($post->ID,
'size',true); ?>&nbsp;|&nbsp;</span>
<span> <?php echo get_post_meta($post->ID,
'direct',true); ?></span>
<?php endif; ?>
<?php if(get_post_custom_values('link')) : ?>
<span> <?php echo get_post_meta($post->ID,
'linksize',true); ?>&nbsp;|&nbsp;</span>
<span> <?php echo get_post_meta($post->ID,
'link',true); ?></span>
<?php endif; ?>
yes this is
<br />
<br />
and don't be affriad of them.!!!
</p>
</div>
<div id="tabs-2" style="display:none;"><p>
<?php if(get_post_custom_values('downguid')) : ?>
<p> <?php echo get_post_meta($post->ID,
'downguid',true); ?></p>
<?php endif; ?>yes
</p></div>
<div id="tabs-3" style="display:none;"><p >
<?php
if(get_post_custom_values('installguid')) : ?>
<span> <?php echo get_post_meta($post->ID,
'installguid',true); ?></span>
<?php endif; ?>
</p></div>
<div id="tabs-4" style="display:none;"><p >
<?php if(get_post_custom_values('properties'))
: ?>
<span> <?php echo get_post_meta($post->ID,
'properties',true); ?></span>
<?php endif; ?>
</p></div>
<div id="tabs-5" style="display:none;">
<?php if(get_post_custom_values('requiresys'))
: ?>
<span> <?php echo get_post_meta($post->ID,
'requiresys',true); ?></span>
<?php endif; ?>
</div>
</div><!--End tab-->
<div id="errorpost">
<p>ÑãÒ ˜á&#1740;å ÝÇ&#1740;á åÇ
<strong>wwww.downloadkaran.com</strong>ã&#1740;
ÈÇÔÏ.</p>
<div><a>ÒÇÑÔ ÎÑÇÈ&#1740; á&#1740;ä˜</a></div>
</div><!--End error post-->
</div><!--End postdata-->
<div class="downsize"></div>
<div class="clear"></div>
<div class="label">
<div>
<strong>ÈэÓÈ åÇ:</strong>
<!--õÔÑæÚ-->
<?php the_tags(__(' ','dnld'), __(', ','dnld'),
__('','dnld')); ?>
<!--õÇ&#1740;Çä-->
</div>
</div><!--end label-->
<div class="clear"> </div>
<div class="date"><span><?php the_time(__('j / F /
Y','kubrick')) ?></span></div>
<div class="comment"><?php
comments_popup_link(__('&#1576;&#1583;&#1608;&#1606;
&#1606;&#1592;&#1585;'), __('1 &#1606;&#1592;&#1585;'),
__('% &#1606;&#1592;&#1585;')); ?></div>
<div class="clear"></div>
</div><!--End midpostbody post -->
<!--Real Post section-->
<?php
//for use in the loop, list 5 post titles related to first tag on current
post
$tags = wp_get_post_tags($post->ID);
if ($tags) {
$first_tag = $tags[0]->term_id;
$args=array(
'tag__in' => array($first_tag),
'post__not_in' => array($post->ID),
'posts_per_page'=>5,
'caller_get_posts'=>1
);
$my_query = new WP_Query($args);
if( $my_query->have_posts() ) {?>
<div class="midpostbody post">
<div class="postheader">
<a >ÓÊ åÇ&#1740; ãÔÇÈå</a>
</div><!--End post header-->
<div id="related">
<ul><?php
while ($my_query->have_posts()) : $my_query->the_post(); ?>
<li><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent
Link to <?php the_title_attribute(); ?>"><h2><?php the_title();
?></h2></a></li>
<br />
<?php
endwhile;
}?>
</ul>
</div><!--End related section-->
</div>
<?php wp_reset_query();
}
?>
<div id="shop" class="midpostbody">
<div id="gallery-wrap">
<ul id="gallery">
<?php $tmp_query = new
WP_Query('cat='.get_cat_ID('ÝÑæÔÇå'));
while ( $tmp_query->have_posts() ) :
$tmp_query->the_post();?>
<li>
<?php the_post_thumbnail();?>
<br />
<h2>
<a href="<?php the_permalink();?>"><?php
the_title(); ?></a>
</h2>
<div><a href="#">ÎÑ&#1740;Ï ÓÊ&#1740;</a></div>
</li>
<?php endwhile; wp_reset_query(); ?>
</ul><!--End gallary ul-->
</div><!--End gallery-wrap-->
<div id="gallery-controls">
<a href="#" id="gallery-next"></a>
<a href="#" id="gallery-prev"></a>
</div><!--End gallery controls-->
</div><!--End shop-->
<div id="signin" class="midpostbody">
<img src="<?php bloginfo('template_directory');
?>/images/group-poste-sabet.jpg" alt="ÚÖæ&#1740;Ê ÏÑ
ÂÑãÇä" />
<h3>
ãÒ&#1740;Ê åÇ&#1740; ÚÖæ&#1740;Ê ÏÑ ÂÑãÇä ÏÇäáæÏ :
</h3>
<ul>
<li> » ÏÑ&#1740;ÇÝÊ ÂÎÑ&#1740;ä ãØÇáÈ ÌÐÇÈ ãäÊÔÑ ÔÏå
ÏÑ ÓÇ&#1740;Ê</li>
<li> » ãÔÇåÏå ÂÎÑ&#1740;ä ãØÇáÈ ÎæÇäÏä&#1740; æ ÌÐÇÈ
ãäÊÔÑ ÔÏå ÏÑ ÇäÌãä</li>
<li>» ÏÑ&#1740;ÇÝÊ ÂÎÑ&#1740;ä Ú˜Ó åÇ&#1740; ÇÖÇÝå ÔÏå
Èå ÇáÑ&#1740; Ú˜Ó Ó Òã&#1740;äå</li>
<li> » ÇÑÓÇá ãØÇáÈ ÊÇË&#1740;Ñ ÐÇÑ æ ãÊÝÇæÊ ÇÒ ÓÑÇÓÑ
Ïä&#1740;Ç&#1740; æÈ ÝÇÑÓ&#1740; æ
Çäá&#1740;Ó&#1740;</li>
<li>» åÑ åÝÊå ãäÊÙÑ ØÇáÚ ÎæÏÊÇä ÈÇÔ&#1740;Ï æ Âä ÑÇ ÏÑ
Ç&#1740;ã&#1740;á ÊÇä ãÔÇåÏå ˜ä&#1740;Ï</li>
<li> » ÇØáÇÚ ÇÒ ÌÐÇÈ ÊÑ&#1740;ä ãØÇáÈ ÔȘå åÇ&#1740;
ÇÌÊãÇÚ&#1740; æ ÓÇ&#1740;Ê åÇ&#1740; ÎÈÑ&#1740;</li>
<li>» ÏÑ&#1740;ÇÝÊ ÂÎÑ&#1740;ä ãØÇáÈ æ Ú˜Ó åÇ&#1740;
ãÏ æ ÝÔä Ç&#1740;ÑÇä&#1740; æ ÎÇÑÌ&#1740;</li>
<li>» ÌÏ&#1740;ÏÊÑ&#1740;ä Ý&#1740;áã åÇ æ Ú˜Ó
åÇ&#1740; ãäÊÔÑ ÔÏå ÏÑ Ïä&#1740;Ç&#1740;
Ç&#1740;äÊÑäÊ</li>
<li> » ÂÎÑ&#1740;ä ÎÈÑåÇ&#1740; åäÑ&#1740; æ
ÇÞÊÕÇÏ&#1740; æ ʘäæáæŽ&#1740;….</li>
<li>» æ ÏÑ ÇäÊåÇ &#1740;ÔäåÇÏ åÇ&#1740; æ&#1740;Žå ãÇ
˜å ÝÞØ ãÎÕæÕ ÇÚÖÇ ã&#1740; ÈÇÔÏ </li>
</ul>
<div><a href="#"></a></div>
</div><!--òEnd signin Section-->
<div>
<?php?>
</div>
<?php include (TEMPLATEPATH . "/comments.php"); ?>
</div><!--End midpannel-->
<?php include (TEMPLATEPATH . "/sidebar-left.php"); ?>
<div class="clear"></div>
<div id="bottom" ></div><!--End bottom section-->
</div><!--End content section-->
</div><!--End outer section-->
<?php
wp_footer();
include(TEMPLATEPATH . "/footer.php");
?>

No comments:

Post a Comment