Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if ( have_posts() ): $contcount = 0; $count = 0;?>
- <?php $contcount++; ?>
- <div class="jobs<?php echo $contcount; ?>">
- <?php while (have_posts()) : the_post(); $count++;?>
- <div class="item-<?php echo $count ?>">
- <h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
- <p><?php echo get_the_excerpt(); ?></p>
- <a href="<?php the_permalink() ?>">Learn more</a> -->
- </div>
- <?php if ($count == 3) {?></div><?php $count = 0; ?><div class="jobs<?php echo $count; ?>"><?php }; ?>
- <?php endwhile; ?>
- </div>
- <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement