Advertisement
Guest User

Untitled

a guest
May 2nd, 2012
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3. <div id="content">
  4.  
  5. <?php
  6. // enter the IDs of which categories you want to display
  7. $display_categories = array(36,32,21,14,10);
  8. foreach ($display_categories as $category) { ?>
  9. <div class="wrapper">
  10. <!--<div class="clearfloat"> -->
  11. <?php query_posts("showposts=4&cat=$category");
  12. $wp_query->is_category = false;
  13. $wp_query->is_archive = false;
  14. $wp_query->is_home = true;
  15. $category_link = get_category_link( $category );?>
  16.  
  17. <h3 class="text_line"><a href="<?php echo $category_link;?>">
  18. <?php // name of each category gets printed
  19. wp_list_categories('include='.$category.'&title_li=&style=none');?>
  20. </a></h3>
  21.  
  22. <?php while (have_posts()) : the_post(); ?>
  23.  
  24. <!--USE THUMBNAIL generated from the posts own image gallery-->
  25. <div class="pic">
  26. <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>" ><?php fetchthumb('homepage-thumb');?></a>
  27. <div class="desc">
  28. <a href="<?php the_permalink(); ?>">
  29. <?php
  30. // this is where title of the article gets printed
  31. the_title(); ?></a></div>
  32.  
  33. </div>
  34.  
  35. <?php //endif; ?>
  36. <!--END USE THUMBNAIL-->
  37.  
  38. <?php endwhile; ?>
  39. </div>
  40. <!--END WRAPPER-->
  41. <?php } ?>
  42. </div>
  43.  
  44. <!--END CONTENT-->
  45.  
  46.  
  47. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement