m.nazari1988 0 ارسال شده در خرداد 99 گزارش بازنشر ارسال شده در خرداد 99 سلام دوستان من یک اسلایدر دارم که 4تا مطلب نشون میده. ولی بعد از هر مطلبی یک صفحه خالی رو نشون میده. چطور میتونم این صفحه خالی رو حذف کنم؟ اینم کدش: <div id="slideshow"> <ul class="rslides"> <li> <?php $args = array( 'category_name' => 'slider', 'offset' => 0, 'posts_per_page' => 1 ); $query_slider = new WP_Query($args); while($query_slider->have_posts()) : $query_slider->the_post(); ?> <div class="slide-txt"> <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> </div> <div class="slide-img"><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a</div> <?php endwhile; ?> </li> <li> <?php $args = array( 'category_name' => 'slider', 'offset' => 1, 'posts_per_page' => 1 ); $query_slider = new WP_Query($args); while($query_slider->have_posts()) : $query_slider->the_post(); ?> <div class="slide-txt"> <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> </div> <div class="slide-img"><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a</div> <?php endwhile; ?> </li> <li> <?php $args = array( 'category_name' => 'slider', 'offset' => 2, 'posts_per_page' => 1 ); $query_slider = new WP_Query($args); while($query_slider->have_posts()) : $query_slider->the_post(); ?> <div class="slide-txt"> <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> </div> <div class="slide-img"><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a</div> <?php endwhile; ?> </li> <li> <?php $args = array( 'category_name' => 'slider', 'offset' => 3, 'posts_per_page' => 1 ); $query_slider = new WP_Query($args); while($query_slider->have_posts()) : $query_slider->the_post(); ?> <div class="slide-txt"> <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> </div> <div class="slide-img"><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a</div> <?php endwhile; ?> </li> <li> <?php $args = array( 'category_name' => 'slider', 'offset' => 4, 'posts_per_page' => 1 ); $query_slider = new WP_Query($args); while($query_slider->have_posts()) : $query_slider->the_post(); ?> <div class="slide-txt"> <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> </div> <div class="slide-img"><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a</div> <?php endwhile; ?> </li> </ul> </div> نقل قول لینک به ارسال
asadiy4n 2807 ارسال شده در خرداد 99 گزارش بازنشر ارسال شده در خرداد 99 سلام ادرس آنلاین بدید نقل قول لینک به ارسال
m.nazari1988 0 ارسال شده در خرداد 99 مالک گزارش بازنشر ارسال شده در خرداد 99 در 19 دقیقه قبل، asadiy4n گفته است : سلام ادرس آنلاین بدید روی local هستش. هنوز بالا نیومده نقل قول لینک به ارسال
پست های پیشنهاد شده
به گفتگو بپیوندید
هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید. اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .