Guest User

Untitled

a guest
Nov 23rd, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. <?php get_header(); ?>
  2. <?php include(TEMPLATEPATH."/left.php");?>
  3.  
  4. <div id="content">
  5. <?php
  6. if (!is_category()) {
  7. //query_posts("cat=-490,-402,-14,-1");
  8. query_posts($query_string . '&cat=-409,-402,-14,-1,-1240');
  9. }
  10. ?>
  11. <?php if (have_posts()) :
  12. $post = $posts[0]; // Hack. Set $post so that the_date() works.
  13.  
  14. //including different template for the first page of Press category
  15. if (is_category('1240')) {
  16. include(TEMPLATEPATH."/all-categories.php");
  17. } else {
  18.  
  19. //The first page of a category is styled differently
  20. if($paged < 2) {
  21. include(TEMPLATEPATH."/front-category.php");
  22. } else {
  23. include(TEMPLATEPATH."/all-categories.php");
  24. }
  25. }
  26. ?>
  27.  
  28. <div class="navigation">
  29. <div class="alignleft"><?php next_posts_link('&larr; older entries') ?></div>
  30. <div class="alignright"><?php previous_posts_link('newer entries &rarr;') ?></div>
  31. </div>
  32.  
  33. <?php else : ?>
  34.  
  35. <h2 class="center">Not Found</h2>
  36. <?php include (TEMPLATEPATH . '/searchform.php'); ?>
  37.  
  38. <?php endif; ?>
  39.  
  40. </div>
  41.  
  42. <?php include(TEMPLATEPATH."/right.php");?>
  43.  
  44. <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment