Advertisement
Guest User

Untitled

a guest
Jul 13th, 2013
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. Anyway, this is what I see in my search.php
  2.  
  3. <?php get_header(); ?>
  4. <div id="content" class="section" role="main">
  5. <?php ar2_above_content() ?>
  6. <h1 class="archive-title"><?php _e('Search Results', 'ar2') ?></h1>
  7. <?php if ( have_posts() ) : ?>
  8. <?php get_search_form(); ?>
  9.  
  10. <div id="archive-posts">
  11. <?php ar2_render_posts( null, array ( 'type' => ar2_get_theme_option( 'archive_display' ) ), true ) ?>
  12. </div><!-- #archive-posts -->
  13.  
  14. <?php else: ?>
  15. <p class="no-results"><?php _e( "Sorry, we couldn't find any results based on your search query.", 'ar2' ) ?></p>
  16. <?php get_search_form() ?>
  17. <?php endif ?>
  18.  
  19. <?php ar2_below_content() ?>
  20. </div><!-- #content -->
  21. <?php get_sidebar(); ?>
  22. <?php get_footer(); ?>
  23.  
  24. And this is what I see in my searchform.php<?php
  25.  
  26. <form method="get" id="searchform" class="clearfix" action="<?php echo esc_url( home_url( '/' ) ); ?>">
  27. <input type="text" class="field" name="s" id="s" placeholder="<?php esc_attr_e( 'Search the site...', 'ar2' ); ?>" <?php if ( '' != get_search_query() ) : ?>value="<?php echo get_search_query() ?>"<?php endif ?> />
  28. <input type="submit" class="submit" name="submit" id="searchsubmit" value="<?php esc_attr_e( 'Search', 'ar2' ); ?>" />
  29. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement