رفتن به مطلب

نمایش صفحه خالی در اسلایدر


پست های پیشنهاد شده

سلام دوستان

من یک اسلایدر دارم که 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>

 

لینک به ارسال

به گفتگو بپیوندید

هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید. اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .

مهمان
ارسال پاسخ به این موضوع ...

×   شما در حال چسباندن محتوایی با قالب بندی هستید.   حذف قالب بندی

  تنها استفاده از 75 اموجی مجاز می باشد.

×   لینک شما به صورت اتوماتیک جای گذاری شد.   نمایش به صورت لینک

×   محتوای قبلی شما بازگردانی شد.   پاک کردن محتوای ویرایشگر

×   شما مستقیما نمی توانید تصویر خود را قرار دهید. یا آن را اینجا بارگذاری کنید یا از یک URL قرار دهید.

×
×
  • اضافه کردن...