خطا در نحوه قرارگیری کدها

batoo_mr

New Member
سلام. من وقتی این دو کد رو به ترتیب زیر قرار میدم مشکلی در اجرا نیست

<?php $my_query = new WP_[/align]Query('showposts=12&cat=3889');
while ($my_query->have_posts()):
$my_query->the_post();
$do_not_duplicate = $post->ID;?>
<a href="<?php the_permalink() ?>"><?php the_title(); ?></a>
<a class="last-link"></a>
<?php endwhile; ?>




<?php $args = array( 'numberposts' => 12, 'orderby' => 'rand', 'cat' => 9' );
$rand_posts = get_posts( $args );
foreach( $rand_posts as $post ) : ?>
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
<a class="last-link"></a>
<?php endforeach; ?>


اما وقتی جای کد اولی و دومی رو جابه جا میکنم دیگه سایت بالا نمیادش.
راهنمایی میکنید؟؟
:sad:
 

جدیدترین ارسال ها

بالا