Guest User

the_time() problem

a guest
Feb 14th, 2012
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. <?php
  2.  
  3. get_header();
  4.  
  5.  
  6.  
  7. if (have_posts()) :
  8.  
  9. while (have_posts()) :
  10. if(is_page()){
  11.  
  12. the_post();
  13.  
  14. the_content();
  15.  
  16. }else{
  17. echo "<h1>";
  18. single_post_title ( $prefix = '', $display = true );
  19. echo "</h1>";
  20. echo "<h2>";
  21. the_time('F jS, Y');
  22. echo "</h2>";
  23. the_post();
  24. the_content();
  25.  
  26. }
  27.  
  28. endwhile;
  29.  
  30. endif;
  31.  
  32.  
  33.  
  34. get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment