m.nazari1988
-
تعداد ارسالها
2 -
تاریخ عضویت
-
آخرین بازدید
نوشتهها ارسال شده توسط m.nazari1988
-
-
سلام دوستان
من یک اسلایدر دارم که 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>
نمایش صفحه خالی در اسلایدر
در هک و برنامه نویسی
ارسال شده در
روی local هستش. هنوز بالا نیومده