AFG Boy 1 ارسال شده در بهمن 93 گزارش بازنشر ارسال شده در بهمن 93 سلاممشکل این کد چیه ؟فقط پست های یک هفته قبل رو نشان میده !تشکر<?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' => 'rand','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" title="<?php the_title(); ?>" rel="tooltip"> <div class="mrbt_right"> <?php the_post_thumbnail( array(60,60) );?> </div> <div class="mrbt_left"> <?php the_title(); ?><br><span style="border-left:0px;">بازدید: <?php if(function_exists('the_views')) { the_views(); } ?></span> </div> </a><?php}}}$post = $orig_post;wp_reset_query(); ?> </div> نقل قول لینک به ارسال
پست های پیشنهاد شده
به گفتگو بپیوندید
هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید. اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .