View difference between Paste ID: WbERsyUH and EQk3MHPA
SHOW: | | - or go back to the newest paste.
1
<div id="slides">
2
                <div class="slides_container">
3
4-
                        <?php $loop = new WP_Query(array('post_type' => 'fastighet', 'posts_per_page' => -1, 'orderby'=> 'ASC')); ?>
4+
                        <?php $loop = new WP_Query(array('post_type' => 'fastighet', 'posts_per_page' => -1 )); ?>
5
                        <?php $i = 0; while ( $loop->have_posts() ) : $loop->the_post(); ?>
6
 						<?php if($i%4 == 0): ?>
7
 						
8
 						<div class="slide">
9-
 										<?php endif; ?>
9+
 						<?php endif; ?>
10-
                                       <a href="<?php the_permalink() ?>" rel="bookmark" title="< ?php the_title_attribute(); ?>"><?php the_post_thumbnail(); ?></a>
10+
 						<div class="fastighet-slider-entry">
11-
                                        <div class="caption">
11+
                        <a href="<?php the_permalink() ?>" rel="bookmark" title="< ?php the_title_attribute(); ?>"><?php the_post_thumbnail(); ?></a>
12-
                                        <h5><?php the_title(); ?></h5>
12+
                         <div class="caption">
13-
                                        </div>
13+
                         	<h5><?php the_title(); ?></h5>
14-
                              <?php if($i%4 == 0): ?></div><?php endif; ?> 
14+
                         </div>
15
                        </div> <!-- end .fastighet-slider-entry -->
16
                         <?php if($i%4 == 0): ?></div><?php endif; ?> 
17
18
                        <?php $i++; endwhile; ?>
19
                        <?php wp_reset_query(); ?>
20
21
                </div> <!-- end .slides_container -->
22
23
                <a href="#" class="prev">prev</a>
24
                <a href="#" class="next">next</a>
25
26
        </div> <!-- end .slides -->