Advertisement
Mikeytrooper

On Demand page.php

Apr 3rd, 2011
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.93 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3. <div id="content">
  4. <div id="content-inside">
  5. <div id="post-container">
  6. <div id="posts-page">
  7. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  8.  
  9. <div id="post-<?php the_ID(); ?>" class="post-item">
  10. <div class="post-details">
  11. <h2><a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
  12. </div>
  13.  
  14. <div class="post-content">
  15. <?php the_content(''); ?>
  16. </div> <!-- post-content -->
  17. </div> <!-- post-item -->
  18.  
  19. <?php endwhile; else : ?>
  20.  
  21. <div id="nothing-here" class="post-item">
  22. <div class="post-details">
  23. <h2>Whoops!!! Nothing Here by That Name</h2>
  24. </div>
  25.  
  26. <div class="post-content">
  27. <p>Very sorry, but what you are looking for isn't here. Maybe you should try one of the links below.</p>
  28.  
  29. <h4 class="not-here">Find Posts by Title:</h4>
  30. <ul>
  31. <?php query_posts('&showposts=1000&orderby=title&order=asc'); if (have_posts()) : while (have_posts()) : the_post(); ?>
  32. <li><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></li>
  33. <?php endwhile; endif; ?>
  34. </ul>
  35.  
  36. <h4 class="not-here">Find Posts by Month:</h4>
  37. <ul>
  38. <?php wp_get_archives('type=monthly'); ?>
  39. </ul>
  40.  
  41. <h4 class="not-here">Find Posts by Category:</h4>
  42. <ul>
  43. <?php wp_list_categories('title_li='); ?>
  44. </ul>
  45.  
  46. <h4 class="not-here">Maybe a Page:</h4>
  47. <ul>
  48. <?php wp_list_pages('title_li='); ?>
  49. </ul>
  50. </div> <!-- post-content -->
  51. </div> <!-- post-item -->
  52.  
  53. <?php endif; ?>
  54. </div> <!-- posts-page -->
  55.  
  56. <?php get_sidebar(); ?>
  57. </div> <!-- post-container -->
  58. </div> <!-- content-inside -->
  59. </div> <!-- content -->
  60.  
  61. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement