Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Anyway, this is what I see in my search.php
- <?php get_header(); ?>
- <div id="content" class="section" role="main">
- <?php ar2_above_content() ?>
- <h1 class="archive-title"><?php _e('Search Results', 'ar2') ?></h1>
- <?php if ( have_posts() ) : ?>
- <?php get_search_form(); ?>
- <div id="archive-posts">
- <?php ar2_render_posts( null, array ( 'type' => ar2_get_theme_option( 'archive_display' ) ), true ) ?>
- </div><!-- #archive-posts -->
- <?php else: ?>
- <p class="no-results"><?php _e( "Sorry, we couldn't find any results based on your search query.", 'ar2' ) ?></p>
- <?php get_search_form() ?>
- <?php endif ?>
- <?php ar2_below_content() ?>
- </div><!-- #content -->
- <?php get_sidebar(); ?>
- <?php get_footer(); ?>
- And this is what I see in my searchform.php<?php
- <form method="get" id="searchform" class="clearfix" action="<?php echo esc_url( home_url( '/' ) ); ?>">
- <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 ?> />
- <input type="submit" class="submit" name="submit" id="searchsubmit" value="<?php esc_attr_e( 'Search', 'ar2' ); ?>" />
- </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement