Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if (have_posts()) : ?>
- <div id="content" class="container_12 clearfloat learnmore">
- <h2>Search Results for "<em><?php the_search_query() ?></em>"</h2>
- <?php while (have_posts()) : the_post(); ?>
- <div class="search-post">
- <h2 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title();?></a></h2>
- <?php the_excerpt();?>
- <p><a href="<?php the_permalink();?>"><?php the_permalink();?></a></p>
- <a class="button" href="<?php the_permalink();?>">View Result »</a>
- </div>
- <?php endwhile; ?>
- </div>
- <?php if (next_posts_link() || previous_posts_link()): ?>
- <?php next_posts_link('« Older Entries') ?> | <?php previous_posts_link('Newer Entries »') ?>
- <?php endif ?>
- <?php else : ?>
- <h2>No results found. Try a different search?</h2>
- <div class="search-container no-results clearit">
- <?php get_search_form(); ?>
- </div>
- <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement