Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <div id="content">
- <?php
- // enter the IDs of which categories you want to display
- $display_categories = array(36,32,21,14,10);
- foreach ($display_categories as $category) { ?>
- <div class="wrapper">
- <!--<div class="clearfloat"> -->
- <?php query_posts("showposts=4&cat=$category");
- $wp_query->is_category = false;
- $wp_query->is_archive = false;
- $wp_query->is_home = true;
- $category_link = get_category_link( $category );?>
- <h3 class="text_line"><a href="<?php echo $category_link;?>">
- <?php // name of each category gets printed
- wp_list_categories('include='.$category.'&title_li=&style=none');?>
- </a></h3>
- <?php while (have_posts()) : the_post(); ?>
- <!--USE THUMBNAIL generated from the posts own image gallery-->
- <div class="pic">
- <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>" ><?php fetchthumb('homepage-thumb');?></a>
- <div class="desc">
- <a href="<?php the_permalink(); ?>">
- <?php
- // this is where title of the article gets printed
- the_title(); ?></a></div>
- </div>
- <?php //endif; ?>
- <!--END USE THUMBNAIL-->
- <?php endwhile; ?>
- </div>
- <!--END WRAPPER-->
- <?php } ?>
- </div>
- <!--END CONTENT-->
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement