Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="boxes">
- <!--So lets set our category to only show fashion-->
- <?php query_posts($query_string . '&cat=8'); ?>
- <!--Start the loop-->
- <?php while ( have_posts() ) : the_post(); ?>
- <!--Inside the loop-->
- <div class="box">
- <!--The post title-->
- <h1><?php the_title(); ?></h1>
- <!--The post image-->
- <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('homepage-thumb', array('alt' => '', 'title' => '')); ?></a>
- </div>
- <?php endwhile; ?>
- </div>
- <?php rewind_posts(); ?>
- <div id="boxes2">
- <!--So lets set our category to only show technology-->
- <?php query_posts($query_string . '&cat=9'); ?>
- <!--Start the loop-->
- <?php while ( have_posts() ) : the_post(); ?>
- <!--Inside the loop-->
- <div class="box">
- <!--The post title-->
- <h1><?php the_title(); ?></h1>
- <!--The post image-->
- <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('homepage-thumb', array('alt' => '', 'title' => '')); ?></a>
- </div>
- <?php endwhile; ?>
- <?php rewind_posts(); ?>
- <div id="boxes3">
- <!--So lets set our category to only show food-->
- <?php query_posts($query_string . '&cat=14'); ?>
- <!--Start the loop-->
- <?php while ( have_posts() ) : the_post(); ?>
- <!--Inside the loop-->
- <div class="box">
- <!--The post title-->
- <h1><?php the_title(); ?></h1>
- <!--The post image-->
- <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('homepage-thumb', array('alt' => '', 'title' => '')); ?></a>
- </div>
- <?php endwhile; ?>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement