Advertisement
Guest User

search.php template

a guest
Mar 9th, 2015
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.39 KB | None | 0 0
  1. <?php
  2.  
  3.     wp_enqueue_script("jquery");
  4.     get_header();
  5.     setup_postdata($post);
  6.    
  7. ?>
  8.  
  9. <?php
  10. /*
  11. Template Name: Search Page
  12. */
  13. ?> 
  14.  
  15.  
  16. <div id="content-column">
  17.    
  18.     <div class="bar"></div>
  19.    
  20.     <div class="con">
  21.  
  22.         <?php if (have_posts()) : ?>
  23.  
  24.         <?php while (have_posts()) : the_post(); ?>
  25.  
  26.     <div class="post" id="post-<?php the_ID(); ?>">
  27.         <h1 class="title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
  28.         <p class="meta"><small>Posted on <?php the_time('F jS, Y') ?> by <?php the_author() ?> <?php edit_post_link('Edit', ' | ', ''); ?></small></p>
  29.         <div class="entry">
  30.             <?php the_excerpt(); ?>
  31.         </div>
  32.         <div class="info">
  33.         <p class="links">&raquo; <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></p>
  34.         <p class="tags"><?php the_tags('Tags: ', ', ', ' '); ?></p>
  35.         </div>
  36.     </div>
  37.     <?php endwhile; ?>
  38.         <div class="navigation">
  39.             <div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
  40.             <div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
  41.         </div>
  42. <?php else : ?>
  43.     <h2 class="center">Not Found</h2>
  44.     <p class="center">Sorry, but you are looking for something that isn't here.</p>
  45. <?php endif; ?>
  46.     </div> <!-- /cont -->
  47.    
  48. </div> <!-- /content column -->
  49.  
  50.  
  51.  
  52. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement