Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <style type="text/css">
- .single_search_post {padding: 20px;margin-bottom: 10px; background: #fff;}
- .single_search_post h1 {font-size: 20px;margin-bottom: 8px;}
- .single_search_post h1 a {color: #27333d;}
- .single_search_post h1 a:hover { color: #ea8f0c;}
- h2.latest_frm_cat_title span {color: #ea8f0c}
- .single_search {border: 1px solid #ddd;margin-bottom: 20px;padding: 15px }
- .single_footer ul li a.popular_link_img{float: left;margin-right: 3%;width: 27%;}
- .single_footer ul li a.popular_link_img img{width:100%;height:80px;}
- .single_footer ul li a.popular_link{float:right;width: 70%;}
- .archive_not_found {-moz-box-shadow: 1px 3px 9px;-webkit-box-shadow: 1px 3px 9px;box-shadow: 1px 3px 9px;font-size: 100px;padding: 10px 0 20px;text-align: center}
- .archive_title {font-size: 31px;margin-left: 0px;padding: 15px 0;text-align: center;margin-bottom: 0;}
- .sear_pagi{margin-bottom:10px}
- </style>
- <div class="search_results column">
- <h2 class="latest_frm_cat_title archive_title"><?php printf ( __ (
- 'Search Results for : %s', 'brightpage' ), '<span>' .
- get_search_query() . '</span>' ); ?> </h2>
- <?php if (have_posts()) : ?>
- <?php if(have_posts()) : ?>
- <?php while (have_posts()) : the_post(); ?>
- <div class="single_search_post">
- <h1><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h1>
- <div class="post_dt_tm fix"><span>Posted on <?php the_time('jS, F, Y') ?></span> <span>by <?php the_author_posts_link(); ?></span> - <span>Posted in: <?php the_category(', '); ?><?php the_taxonomies(array('template' => '% %l')); ?></span></div>
- <?php $post_content = get_the_content(); echo wp_trim_words($post_content, 60 );?>
- <a href="<?php the_permalink(); ?>" class="readmore_btn">Read More</a>
- </div>
- <?php endwhile; ?>
- <?php endif; ?>
- <!-- here is your pagnavicode -->
- <?php else : ?>
- <h3 class="archive_not_found">404 not found </h3>
- <?php endif; ?>
- <div class="sear_pagi fix">
- <?php if (function_exists('wp_pagenavi')) { wp_pagenavi(); } else { include('navigation.php'); } ?>
- </div>
- </div>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment