hannanstd.ir
مدیر انجمن و توسعه دهنده ووکامرس پارسی
خب شما اون کد رو از page.php به single.php و داخل حلقه پست کپی کنید
<?php get_header(); ?><div class="main" align="center">
<?php include("right.php") ?>
<?php include("center.php") ?>
<?PHP if (have_posts() ) : while (have_posts() ) : the_post(); ?>
<div class="mpost">
<div class="mpost_head">
<?php $english = get_post_meta($post->ID, 'english', true); ?>
<?php if(get_post_custom_values('english')) : ?>
<a href="<?php the_permalink() ?>"> > <?php echo $english; ?> </a>
<?php endif; ?>
</div>
<div class="mpost_text">
<div href="<?php the_permalink() ?>" class="mpt_top">
<div class="mrbt_right">
<?php the_post_thumbnail( array(60,60) );?>
</div>
<div class="mmrbt_left">
<a href="<?php the_permalink() ?>" target="_blank"><?php the_title();?></a>
</br>
<?php $descript= get_post_meta($post->ID, 'descript', true); ?>
<?php if(get_post_custom_values('descript')) : ?>
<?php echo $descript; ?>
<?php endif; ?>
</div>
<div class="clear"></div>
</div>
<div class="clear"></div>
<div class="single_img"><?php NESTED_thumb_image();?></div>
<div class="clear"></div>
<div class="mpt_bottom">
<?php the_content(); ?>
</div>
</div>
<div class="tags">
<?php the_tags(__(' ','dnld'), __(', ','dnld'), __('','dnld')); ?>
</div>
</div>
<?PHP endwhile; ?>
<?PHP endif ?>
<div class="mpd_divs" style="width:320px;">
<div class="mpd_head">
<b>:: Information</b>
<span><?php if(function_exists('the_views')) { the_views(); } ?></span>
</div>
<div class="mpd_bottom" style="height:230px;">
<span>
<?php $english = get_post_meta($post->ID, 'english', true); ?>
<?php if(get_post_custom_values('english')) : ?>
<div class="dl_txt"> <b>نام :</b> <?php echo $english; ?></div>
<?php endif; ?>
</span>
<span>
<div class="dl_txt"><b>موضوع :</b> <?php the_category(' , '); ?></div>
</span>
<span>
<?php $version = get_post_meta($post->ID, 'version', true); ?>
<?php if(get_post_custom_values('version')) : ?>
<div class="dl_txt"> <b>ویرایش نسخه :</b> <?php echo $version; ?> </div>
<?php endif; ?>
</span>
<?php $price= get_post_meta($post->ID, 'price', true); ?>
<?php if(get_post_custom_values('price')) : ?>
<span>
<div class="dl_txt"> <b>قیمت: </b> <?php echo $price; ?> | صرفاً جهت اطلاع !</div>
</span>
<?php endif; ?>
<span>
<?php $Seller= get_post_meta($post->ID, 'Seller', true); ?>
<?php if(get_post_custom_values('Seller')) : ?>
<div class="dl_txt"> <b>سازنده: </b> <?php echo $Seller; ?></div>
<?php endif; ?>
</span>
<span>
<div class="dl_txt"> <b>تاریخ بروزرسانی: </b><?php the_time('j F Y') ?></div>
</span>
<span>
<?php $size = get_post_meta($post->ID, 'size', true); ?>
<?php if(get_post_custom_values('size')) : ?>
<div class="dl_txt"> <b>حجم فایل: </b> <?php echo $size; ?></div>
<?php endif; ?>
</span>
<span>
<div class="dl_txt"><b>رمز فایل: </b><?php $values = get_post_custom_values("password"); echo $values[0]; ?></div>
</span>
<div class="clear"></div>
</div>
</div>
<div class="mpd_divs1" style="width:154px;">
<div class="mpd_bottom1" style="height:145px;">
<?php $dl = get_post_meta($post->ID, 'dl', true); ?>
<?php if(get_post_custom_values('dl')) : ?>
<a href="<?php echo $dl;?>"><img style="margin-right:5px;" src="<?php bloginfo('template_url'); ?>/images/download.png"></a>
<?php else: ?>
<a><img style="margin-left:8px;" class="div_img" src="<?php bloginfo('template_url'); ?>/images/download_blank.png"></a>
<?php endif; ?>
<?php $mid_var = get_post_meta($post->ID, 'dl',true);
if(isset($mid_var) && !empty($mid_var)) : ?>
<a href="<?php echo get_post_meta($post->ID, 'dl',true); ?>" title="<?php the_title(); ?>" target="_blank">ِ</a>
<?php endif; ?>
</div>
<div class="mpd_bottom1" style="height:40px;padding-top:0px">
<?php $itunes= get_post_meta($post->ID, 'itunes', true);?>
<?php $google= get_post_meta($post->ID, 'google', true);?>
<?php if(!get_post_custom_values('itunes')&&!get_post_custom_values('google')){?>
<img class="div_img" src="<?php bloginfo('template_url'); ?>/images/n_source.png">
<?php }?>
<?php if(get_post_custom_values('itunes')) : ?>
<a target="_blank" href="<?php echo $itunes; ?>"><img class="div_img" src="<?php bloginfo('template_url'); ?>/images/itunes_link_icon.png"></a>
<?php endif; ?>
<?php if(get_post_custom_values('google')) : ?>
<a target="_blank" href="<?php echo $google; ?>"><img class="div_img" src="<?php bloginfo('template_url'); ?>/images/playgoogle_link_icon.png"></a>
<?php endif; ?>
</div>
<div class="mpd_bottom1" style="height:50px;background:#4e4e4e;padding-top:0px">
<center>
<input style="margin-right:10px;margin-left:5px;border:0;height:48px;cursor:pointer;width:56px;background:url('<?php bloginfo('template_url') ?>/images/report.png') no-repeat;" class="div_img zoom" type="button" onclick="showWindow('black');" value=""/>
<input style="border:0;height:48px;cursor:pointer;width:56px;background:url('<?php bloginfo('template_url') ?>/images/version.png') no-repeat;" class="div_img zoom" type="button" onclick="showWindow('yellow');" value=""/>
</center>
</div>
</div>
<div class="mpd_divs" style="width:185px;">
<div class="mpd_head">
<b>:: QR Code</b>
</div>
<div class="mpd_bottom" style="height:230px;margin:7px 10px 10px 0px;">
<img src="https://chart.googleapis.com/chart?cht=qr&chs=170x170&chl=<?php $dl = get_post_meta($post->ID, 'dl', true); ?>
<?php if(get_post_custom_values('dl')) : ?><?php echo $dl;?><?php else:?><?php the_permalink() ?><?php endif; ?>" /></br>
- دانلود مستقیم با QR Code.
<br/>
<blink>
<a target="_blank" href="http://limoobile.com/1392/06/qr-code-%DA%86%DB%8C%D8%B3%D8%AA/">
- QR Code* چیست و چگونه باید از استفاده کرد؟
</a>
</blink>
</div>
</div>
<div class="mpd_divs" style="width:675px;">
<div class="mpd_head">
<b>:: Related Posts</b>
</div>
<div class="mpd_bottom" style="height:155px;">
<?php $orig_post = $post;
global $post;
$categories = get_the_category($post->ID);
if ($categories) {
$category_ids = array();
foreach($categories as $individual_category) $category_ids[] = $individual_category->term_id;
$args=array(
'category__in' => $category_ids,
'post__not_in' => array($post->ID),
'posts_per_page'=> 6,
'orderby' => 'desc',
'caller_get_posts'=>1
);
$my_query = new wp_query( $args );
if( $my_query->have_posts() ) { while( $my_query->have_posts() ) {
$my_query->the_post();?>
<a href="<?php the_permalink() ?>" class="mlw_a">
<div class="mrbt_right">
<?php the_post_thumbnail( array(60,60) );?>
</div>
<div class="mrbt_left">
<?php the_title(); ?>
<br>
<span style="float:right;">بازدید: </span>
<div style="direction:ltr;float:right;margin-right:3px;">
<?php if(function_exists('the_views')) { the_views(); } ?>
</div>
</div>
</a>
<?php
}
}
}
$post = $orig_post;
wp_reset_query(); ?>
</div>
</div>
<div class="mpd_divs" style="width:676px;">
<div class="mpd_head">
<b>:: Comments</b>
</div>
<div class="mpd_bottom">
<?php comments_template(); ?>
</div>
</div>
<div class="clear"></div>
</div>
</div>
<div class="clear"></div>
<?php get_footer(); ?>
<?php $icon = get_post_meta($post->ID, 'icon', true); ?> <?php if(get_post_custom_values('icon')) : ?>
<img height="60px" width="60px" src="<?php echo $icon; ?>">
<?php endif; ?>
<?php the_post_thumbnail( array(60,60) );?>
<?php the_title(); ?>
<?php $name = get_post_meta($post->ID, 'name', true); ?> <?php if(get_post_custom_values('name')) : ?>
<?php echo $name; ?>
<?php endif; ?>
[COLOR=#333333]<?php the_title(); ?>[/COLOR]
<div class="mr_box"><div class="mrb_head">
<div class="mrbh_text">
دسته 1
</div>
<a href="#"></a>
</div>
<div class="mrb_texta">
<?php
global $post;
$myposts = get_posts(array('numberposts' => 1, 'offset' => 0, 'category' => 7, 'post_status'=>'publish')); // بجای عدد یک آی دی دسته مورد نظر را وارد نمایید
foreach($myposts as $post) :
setup_postdata($post);
?>
<a href="<?php the_permalink() ?>" class="mlw_aa">
<div class="mrbt_right1">
<?php the_post_thumbnail( array(500,244) );?>
</div>
</a>
<?php endforeach; ?>
<?php wp_reset_query(); ?>
<span>
<?php
global $post;
$myposts = get_posts(array('numberposts' => 10, 'offset' => 0, 'category' => 7, 'post_status'=>'publish')); // بجای عدد یک آی دی دسته مورد نظر را وارد نمایید
foreach($myposts as $post) :
setup_postdata($post);
?>
<a href="<?php the_permalink() ?>" target="_blank">:: <?php the_title();?></a>
<?php endforeach;
wp_reset_postdata(); ?>
</span>
<div class="clear"></div>
</div>
</div>
<?php get_header(); ?><div class="main" align="center">
<?php include("right.php") ?>
<?php include("center.php") ?>
<?PHP if (have_posts() ) : while (have_posts() ) : the_post(); ?>
<div class="post boxshadow">
<div class="post_head">
<?php $english = get_post_meta($post->ID, 'english', true); ?>
<?php if(get_post_custom_values('english')) : ?>
<a href="<?php the_permalink() ?>"> <?php echo $english; ?> </a>
<?php endif; ?>
<?php $type = get_post_meta($post->ID, 'type', true); ?>
<?php if(get_post_custom_values('type')) : ?>
<span class="ph_<?php echo $type; ?>"></span>
<?php endif; ?>
</div>
<div class="post_text">
<a href="<?php the_permalink() ?>" target="_blank"><div class="post_img"><?php NESTED_thumb_image();?></div></a>
<div style="padding:0 10px">
<div href="" class="pt_top">
<div class="mrbt_left">
<a style="font-family:verdana,Byekan;" href="<?php the_permalink() ?>" target="_blank"><?php the_title();?></a>
</br>
</div>
</div>
<div class="clear"></div>
<div class="pt_bottom">
<?php the_content(''); ?>
</div>
</div>
</div>
<div class="post_foot">
<span>تاریخ: <b><?php the_date('Y/n/j', '', '', TRUE) ?></b></span>
<span style="border-left:0px;">بازديد: <b><?php if(function_exists('the_views')) { the_views(); } ?></b></span>
<a href="<?php the_permalink() ?>">ادامه</a>
</div>
</div>
<?PHP endwhile; ?>
<?PHP endif ?>
<div style="clear:both;"></div>
<div class="page_num">
<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
</div>
<div class="clear"></div>
<div class="webwidget_scroller_tab2" id="webwidget_scroller_tab2">
<div class="tabContainer2">
<ul class="tabHead2">
<span>جديدترين بازي ها</span>
<li class="currentBtn"><a href="javascript:;">Android</a></li>
<li><a href="javascript:;">ios</a></li>
</ul>
</div>
<div class="tabBody2">
<ul>
<!-- Tab 2 _ limooweb.com -->
<li class="tabCot">
<div style="margin:10px; overflow:hidden;">
<?php
global $post;
$myposts = get_posts(array('numberposts' => 12, 'offset' => 0, 'category' => 1, 'post_status'=>'publish')); // بجای عدد یک آی دی دسته مورد نظر را وارد نمایید
foreach($myposts as $post) :
setup_postdata($post);
?>
<a href="<?php the_permalink() ?>" class="mlw_a">
<div class="mrbt_right">
<?php the_post_thumbnail( array(60,60) );?>
</div>
<div class="mrbt_left">
<?php the_title(); ?>
<br>
<span style="float:right;">بازدید: </span>
<div style="direction:ltr;float:right;margin-right:3px;">
<?php if(function_exists('the_views')) { the_views(); } ?>
</div>
</div>
</a>
<?php endforeach; ?>
<?php wp_reset_query(); ?>
</div>
</li>
<!-- Tab 1 _ limooweb.com -->
<li class="tabCot">
<div style="margin:10px; overflow:hidden;">
<?php
global $post;
$myposts = get_posts(array('numberposts' => 12, 'offset' => 0, 'category' => 1, 'post_status'=>'publish')); // بجای عدد یک آی دی دسته مورد نظر را وارد نمایید
foreach($myposts as $post) :
setup_postdata($post);
?>
<a href="<?php the_permalink() ?>" class="mlw_a">
<div class="mrbt_right">
<?php the_post_thumbnail( array(60,60) );?>
</div>
<div class="mrbt_left">
<?php the_title(); ?>
<br>
<span style="float:right;">بازدید: </span>
<div style="direction:ltr;float:right;margin-right:3px;">
<?php if(function_exists('the_views')) { the_views(); } ?>
</div>
</div>
</a>
<?php endforeach; ?>
<?php wp_reset_query(); ?>
</div>
</li>
</ul>
</div>
</div>
<div class="clear"></div>
<div class="webwidget_scroller_tab1" id="webwidget_scroller_tab1">
<div class="tabContainer1">
<ul class="tabHead1">
<span>جديدترين گرافيک ها</span>
<li class="currentBtn"><a href="javascript:;">Luncher</a></li>
<li><a href="javascript:;">Widget</a></li>
<li><a href="javascript:;">Wallpaper</a></li>
</ul>
</div>
<div class="tabBody1">
<ul>
<!-- Tab 2 _ limooweb.com -->
<li class="tabCot">
<div style="margin:10px; overflow:hidden;">
<?php
global $post;
$myposts = get_posts(array('numberposts' => 12, 'offset' => 0, 'category' => 1, 'post_status'=>'publish')); // بجای عدد یک آی دی دسته مورد نظر را وارد نمایید
foreach($myposts as $post) :
setup_postdata($post);
?>
<a href="<?php the_permalink() ?>" class="mlw_a">
<div class="mrbt_right">
<?php the_post_thumbnail( array(60,60) );?>
</div>
<div class="mrbt_left">
<?php the_title(); ?>
<br>
<span style="float:right;">بازدید: </span>
<div style="direction:ltr;float:right;margin-right:3px;">
<?php if(function_exists('the_views')) { the_views(); } ?>
</div>
</div>
</a>
<?php endforeach; ?>
<?php wp_reset_query(); ?>
</div>
</li>
<!-- Tab 1 _ limooweb.com -->
<li class="tabCot">
<div style="margin:10px; overflow:hidden;">
<?php
global $post;
$myposts = get_posts(array('numberposts' => 12, 'offset' => 0, 'category' => 1, 'post_status'=>'publish')); // بجای عدد یک آی دی دسته مورد نظر را وارد نمایید
foreach($myposts as $post) :
setup_postdata($post);
?>
<a href="<?php the_permalink() ?>" class="mlw_a">
<div class="mrbt_right">
<?php the_post_thumbnail( array(60,60) );?>
</div>
<div class="mrbt_left">
<?php the_title(); ?>
<br>
<span style="float:right;">بازدید: </span>
<div style="direction:ltr;float:right;margin-right:3px;">
<?php if(function_exists('the_views')) { the_views(); } ?>
</div>
</div>
</a>
<?php endforeach; ?>
<?php wp_reset_query(); ?>
</div>
</li>
</ul>
</div>
</div>
<div class="clear"></div>
</div>
</div>
<div class="clear"></div>
<?php get_footer(); ?>
<div class="post_head">
<?php $ios = get_post_meta($post->ID, 'ios', true); ?> <?php if(get_post_custom_values('ios')) : ?>
<img width="25px" height="25px" border="0px" src="http://limoobile.com/wp-content/themes/limoobile%28www.limooweb.com%29/images/ios_icon.png" alt="ios" valign="center">
<?php endif; ?>
<?php $and = get_post_meta($post->ID, 'and', true); ?> <?php if(get_post_custom_values('and')) : ?>
<img width="25px" height="25px" border="0px" src="http://limoobile.com/wp-content/themes/limoobile%28www.limooweb.com%29/images/android_icon.png" alt="android" valign="center">
<?php endif; ?>
<?php echo $name; ?>
<b><?php echo $name; ?></b>