Advertisement
Guest User

Untitled

a guest
Jul 29th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.85 KB | None | 0 0
  1. <?php
  2.  
  3. get_header(); ?>
  4.  
  5. <?php
  6. global $query_string;
  7.  
  8. $query_args = explode("&", $query_string);
  9. $search_query = array();
  10.  
  11. foreach($query_args as $key => $string) {
  12.     $query_split = explode("=", $string);
  13.     $search_query[$query_split[0]] = $query_split[1];
  14. } // foreach
  15.  
  16. $search = new WP_Query($search_query);
  17. ?>
  18.  
  19.  
  20. <div id="search_wrap">
  21.     <div id="searchbox_container">
  22.    
  23.     <form role="search" method="get" id="searchform" action="<?php bloginfo('url'); ?>">
  24.         <fieldset>
  25.             <input type="submit" id="searchsubmit" value="Submit" />
  26.             <input type="text" name="s" id="s" class="search_box" />
  27.         </fieldset>
  28.     </form>
  29.     </div>
  30.    
  31.     <div class="searchoptions_container">
  32.         <div class="search_content">
  33.             <p>Dont want to type? Then search using the <a href="#">tag cloud</a>.</p>
  34.         </div>
  35.        
  36.         <div class="search_options">
  37.            
  38.             <div id="tag_cloud">
  39.                 <?php          
  40.                    
  41.                  wp_tag_cloud( array(
  42.                     'taxonomy' => 'Genre',
  43.                     'number' => 50 ,
  44.                     'smallest' => '8',
  45.                     'largest' => '15',
  46.                     'unit' => 'pt',
  47.                     'separator' => ', ',
  48.                     'orderby' => 'count',
  49.                 //  'order' => 'DESC'
  50.                     ));
  51.                     ?>
  52.                
  53.                
  54.             </div>
  55.         </div>
  56.        
  57.     </div>
  58.  
  59. </div> <!-- end search_wrap -->
  60.  
  61.         <div id="lower_wrapper">
  62.  
  63.             <div id="maincontentwrapper">
  64.  
  65.                 <div id="maincontentcontainer">
  66.  
  67.                     <div id="main_right">
  68.                     <div id="main_left">
  69.  
  70.                     <div class="indexcontentcontainer">
  71.  
  72.                         <div class="search_wrap_results" style="min-height:750px; padding-top:25px;">
  73.  
  74.                             <?php
  75.                            
  76.                             global $wp_query;
  77.                             $total_results = $wp_query->found_posts;
  78.                            
  79.                              query_posts( 'post_type=any&showposts=6' ); ?>
  80.                             <?php if(have_posts()) : ?>
  81.  
  82.                                 <?php while(have_posts()) : the_post(); ?>
  83.  
  84.  
  85.                                             <div class="eps" id="post-<?php the_ID(); ?>">
  86.  
  87.  
  88.                                                 <div class="dvdcovercontainer">
  89.  
  90.                                                         <a href="<?php the_permalink(); ?>">
  91.                                                             <img src="#" width="85px" height="120px" alt="" /> <!-- make sure width x height is 85x120 -->
  92.                                                         </a>
  93.  
  94.                                                     <div class="dvdcoverpost">
  95.                                                         </div>
  96.                                                 </div>
  97.  
  98.                                                 <div class="contentpost">
  99.  
  100.                                                     <div class="listlinks">
  101.                                                         <ul>
  102.                                                         <li><a href="<?php the_permalink(); ?>"><?php the_tags('','\\'); ?></a></li>
  103.  
  104.                                                         </ul>
  105.                                                     </div> 
  106.  
  107.  
  108.                                                     <h2 class="listlinks"><?php                                                 echo the_category(); ?></h2>               
  109.  
  110.                                                     <?php echo category_description(); ?>
  111.  
  112.                                                 </div> <!-- end search results -->
  113.                                                 </div>
  114.  
  115.                                 <?php endwhile; ?>
  116.  
  117.                                 <?php else : ?>
  118.                                                 <h2>Yo, we found NOTHING...</h2>
  119.                                                 <p>So... Theres no posts...</p>
  120.                                 <?php endif; ?>
  121.                                
  122.                                 </div> <!-- end_search_wrap -->
  123.                     <div class="footer">
  124.                        
  125. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement