Parsa 23463 ارسال شده در دی 92 گزارش بازنشر ارسال شده در دی 92 <?php$categories = get_the_category($post->ID);$post_cats = array();if($categories)foreach($categories as $category)$post_cats[] = $category->term_id;$args = array('post__not_in' => array($post->ID),'caller_get_posts'=>1,'posts_per_page'=> 4,'orderby'=>'rand');if (in_array(36,$post_cats)) {$args['category__in'] = array(32,42,43,33,51,40,34,37,47,48,41,35,39,46,44,45,50,49,52,38,53);}elseif(in_array(28,$post_cats)) {$args['category__in'] = array(32,42,43,33,51,40,34,37,47,48,41,35,39,46,44,45,50,49,52,38,53);}else{}$my_query = new wp_query( $args );if( $my_query->have_posts() ) { while( $my_query->have_posts() ) {$my_query->the_post();?><li> <div class="relatedcontent"> <h3><a href="<? the_permalink()?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3> </div></li><?php}}?> 4 نقل قول لینک به ارسال
پست های پیشنهاد شده
به گفتگو بپیوندید
هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید. اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .