Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
- <?php endwhile; else: ?>
- <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
- <?php endif; ?>
- <?php
- get_header();
- the_post();
- ?>
- <?php define('WP_USE_THEMES', false); get_header(); ?>
- <div class="iecontent">
- <div class="g960">
- <div id="search">
- <div id="search-box">
- <form action="<?php bloginfo( 'url' ); ?>" method="get">
- <div>
- <input type="text" name="s" value="<?php echo get_search_query()?>" placeholder="Search..."/>
- <input type="submit" name="searchsubmit" value="" class="submit"/>
- </div>
- </form>
- </div>
- <div id="search-results">
- <div class="search-result">
- <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
- <?php endwhile; else: ?>
- <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
- <?php endif; ?>
- </div>
- </div>
- <?php wpbeginner_numeric_posts_nav(); ?>
- <div class="clearfix"></div>
- </div>
- </div>
- </div>
- <?php get_footer(); ?>
- 748 function have_posts() {
- 749 global $wp_query;
- 750
- 751 return $wp_query->have_posts();
- 752 }
- 3520 function have_posts() {
- 3521 if ( $this->current_post + 1 < $this->post_count ) {
- 3522 return true;
- 3523 } elseif ( $this->current_post + 1 == $this->post_count && $this->post_count > 0 ) {
- // truncated
- if we still have posts to process
- while we still have posts to process
- mark this post as processed and move to the next one
- do things with it ( like printing the title and contents
- mark the first post as processed
- if we still have posts to process
- while we still have posts to process
- mark this post as processed and move to the next one
- do things with it ( like printing the title and contents
- <?php
- get_header();
- the_post();
- ?>
- <?php define('WP_USE_THEMES', false); get_header(); ?>
Add Comment
Please, Sign In to add comment