Advertisement
Guest User

Search.php

a guest
May 6th, 2012
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.72 KB | None | 0 0
  1. ... ... ...
  2. </head>
  3. <body>
  4. ... ... ...
  5.  
  6. <div class="entries">
  7.  
  8.     <h3 style="text-transform: uppercase;"><?php the_search_query(); ?> :</h3>
  9.            
  10.         <?php if(have_posts()) : ?>
  11.         <?php while(have_posts()) : the_post(); ?>
  12.         <h3 id="post-<?php the_ID(); ?>" <?php post_class(); ?>><a href="<?php echo get_permalink(); ?>" rel="bookmark" title="Permalink to <?php the_title(); ?>"><?php the_title(); ?></a> <?php edit_post_link('Edit',' | ',''); ?></h3>
  13.         <div class="clear"></div>  
  14.         <div class="postmetadata">
  15.         <span class="date">Post created on <?php the_time('j F Y') ?></span>
  16.         <span class="date">Post updated on <?php the_modified_date(); ?></span>
  17.         <span class="comment"><?php comments_popup_link('No comment &#187;','1 comment &#187;','% comments &#187;'); ?></span>
  18.         </div>
  19.  
  20.         <div class="entry">
  21.         <?php if (has_post_thumbnail()) {
  22.         echo '<div class="attachment-thumbnail">';
  23.         the_post_thumbnail('post-thumb', array('title' => trim(strip_tags( $attachment->post_title ))));
  24.         echo '</div>';
  25.         the_excerpt('Read more &raquo;');
  26.         }
  27.         else
  28.         {
  29.         the_content('Read more &raquo;');
  30.         }
  31.         ?>
  32.         </div>
  33.  
  34.         <div class="clear"></div>
  35.  
  36.         <div class="postmetadata">
  37.             <span class="category">Cat&eacute;gories: <?php the_category(',', '' ); ?></span>
  38.             <span class="tag"><?php the_tags('Tags: ', ', ', ''); ?></span>
  39.         </div>
  40.  
  41.         <?php endwhile; ?>
  42.  
  43.         <?php else : ?>
  44.  
  45.         <h3>No page found !</h3>
  46.         <div class="entry">
  47.             <p title="Do your search here">Sorry, but you are looking for something that is not here.</p>
  48.             </div>
  49.  
  50.         <?php endif; ?>
  51.  
  52.         </div>
  53.  
  54. ... ... ...
  55. <?php get_footer(); ?>
  56.  
  57.  
  58. ... ... ...
  59. </body>
  60. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement